Class HttpServiceProviderImplementation
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.HttpServiceProviderImplementation
-
- All Implemented Interfaces:
HttpServiceProvider
public class HttpServiceProviderImplementation extends java.lang.Object implements HttpServiceProvider
Implementation ofHttpServiceProviderinterface.
-
-
Constructor Summary
Constructors Constructor Description HttpServiceProviderImplementation()
-
Method Summary
Modifier and Type Method Description PrimaryDataEntitygetPrimaryDataEntityByID(java.lang.String uuid, long versionNumber)Getter to load aPrimaryDataEntityobject specified byUUIDand number of thePrimaryDataEntityVersion.PrimaryDataEntitygetPrimaryDataEntityForPersistentIdentifier(java.lang.String uuid, long versionNumber, PersistentIdentifier persistentIdentifier)Get aPrimaryDataEntityfor a givenPublicReferencePrimaryDataEntitygetPrimaryDataEntityForReviewer(java.lang.String uuid, long versionNumber, java.lang.String internalId, int reviewerCode)Getter for aPrimaryDataEntityfor a reviewer to create a temporary landing page.PrimaryDataEntitygetPrimaryDataEntityRekursiveForPersistenIdentifier(PrimaryDataEntity entity, long versionNumber, PersistentIdentifier persistentIdentifier)
-
-
-
Method Detail
-
getPrimaryDataEntityByID
public PrimaryDataEntity getPrimaryDataEntityByID(java.lang.String uuid, long versionNumber) throws EdalException
Getter to load aPrimaryDataEntityobject specified byUUIDand number of thePrimaryDataEntityVersion.- Specified by:
getPrimaryDataEntityByIDin interfaceHttpServiceProvider- Parameters:
uuid- theUUIDof thePrimaryDataEntity.versionNumber- the version number of thePrimaryDataEntityVersion.- Returns:
- the specified
PrimaryDataEntity - Throws:
EdalException- if there is noPrimaryDataEntitywith the specified values.
-
getPrimaryDataEntityForPersistentIdentifier
public PrimaryDataEntity getPrimaryDataEntityForPersistentIdentifier(java.lang.String uuid, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
Description copied from interface:HttpServiceProviderGet aPrimaryDataEntityfor a givenPublicReference- Specified by:
getPrimaryDataEntityForPersistentIdentifierin interfaceHttpServiceProvider- Parameters:
uuid- the id of thePrimaryDataEntityversionNumber- the number of thePrimaryDataEntityVersionpersistentIdentifier- the type of the identifier- Returns:
- the
PrimaryDataEntity - Throws:
EdalException- if unable to find aPrimaryDataEntity
-
getPrimaryDataEntityForReviewer
public PrimaryDataEntity getPrimaryDataEntityForReviewer(java.lang.String uuid, long versionNumber, java.lang.String internalId, int reviewerCode) throws EdalException
Getter for aPrimaryDataEntityfor a reviewer to create a temporary landing page.- Specified by:
getPrimaryDataEntityForReviewerin interfaceHttpServiceProvider- Parameters:
uuid- the id of thePrimaryDataEntityversionNumber- the number of thePrimaryDataEntityVersioninternalId- the internal ID of the correspondingPublicReferencereviewerCode- the id to identify a reviewer- Returns:
- the searched
PrimaryDataEntity - Throws:
EdalException- if unable to load thePrimaryDataEntity
-
getPrimaryDataEntityRekursiveForPersistenIdentifier
public PrimaryDataEntity getPrimaryDataEntityRekursiveForPersistenIdentifier(PrimaryDataEntity entity, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
Description copied from interface:HttpServiceProvider- Specified by:
getPrimaryDataEntityRekursiveForPersistenIdentifierin interfaceHttpServiceProvider- Parameters:
entity- to search for the parent recursiveversionNumber- number of thePrimaryDataEntityVersionpersistentIdentifier- the ID type- Returns:
- the
PrimaryDataEntitywith thePersistentIdentifier - Throws:
EdalException- if noPersistentIdentifierset
-
-