Interface HttpServiceProvider
-
- All Known Implementing Classes:
HttpServiceProviderImplementation
public interface HttpServiceProviderInterface to provide function for theEdalHttpHandler
-
-
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
PrimaryDataEntity getPrimaryDataEntityByID(java.lang.String uuid, long versionNumber) throws EdalException
Getter to load aPrimaryDataEntityobject specified byUUIDand number of thePrimaryDataEntityVersion.- Parameters:
uuid- theUUIDof thePrimaryDataEntity.versionNumber- the version number of thePrimaryDataEntityVersion.- Returns:
- the specified
PrimaryDataEntity - Throws:
EdalException- if there is noPrimaryDataEntitywith the specified values.
-
getPrimaryDataEntityForPersistentIdentifier
PrimaryDataEntity getPrimaryDataEntityForPersistentIdentifier(java.lang.String uuid, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
Get aPrimaryDataEntityfor a givenPublicReference- 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
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.- 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
PrimaryDataEntity getPrimaryDataEntityRekursiveForPersistenIdentifier(PrimaryDataEntity entity, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
- Parameters:
entity- to search for the parent recursiveversionNumber- number of thePrimaryDataEntityVersionpersistentIdentifier- the ID type- Returns:
- the
PrimaryDataEntitywith thePersistentIdentifier - Throws:
EdalException- if noPersistentIdentifierset
-
-