Interface HttpServiceProvider
-
- All Known Implementing Classes:
HttpServiceProviderImplementation
public interface HttpServiceProvider
Interface to provide function for theEdalHttpHandler
-
-
Method Summary
Modifier and Type Method Description PrimaryDataEntity
getPrimaryDataEntityByID(java.lang.String uuid, long versionNumber)
Getter to load aPrimaryDataEntity
object specified byUUID
and number of thePrimaryDataEntityVersion
.PrimaryDataEntity
getPrimaryDataEntityForPersistentIdentifier(java.lang.String uuid, long versionNumber, PersistentIdentifier persistentIdentifier)
Get aPrimaryDataEntity
for a givenPublicReference
PrimaryDataEntity
getPrimaryDataEntityForReviewer(java.lang.String uuid, long versionNumber, java.lang.String internalId, int reviewerCode)
Getter for aPrimaryDataEntity
for a reviewer to create a temporary landing page.PrimaryDataEntity
getPrimaryDataEntityRekursiveForPersistenIdentifier(PrimaryDataEntity entity, long versionNumber, PersistentIdentifier persistentIdentifier)
-
-
-
Method Detail
-
getPrimaryDataEntityByID
PrimaryDataEntity getPrimaryDataEntityByID(java.lang.String uuid, long versionNumber) throws EdalException
Getter to load aPrimaryDataEntity
object specified byUUID
and number of thePrimaryDataEntityVersion
.- Parameters:
uuid
- theUUID
of thePrimaryDataEntity
.versionNumber
- the version number of thePrimaryDataEntityVersion
.- Returns:
- the specified
PrimaryDataEntity
- Throws:
EdalException
- if there is noPrimaryDataEntity
with the specified values.
-
getPrimaryDataEntityForPersistentIdentifier
PrimaryDataEntity getPrimaryDataEntityForPersistentIdentifier(java.lang.String uuid, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
Get aPrimaryDataEntity
for a givenPublicReference
- Parameters:
uuid
- the id of thePrimaryDataEntity
versionNumber
- the number of thePrimaryDataEntityVersion
persistentIdentifier
- 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 aPrimaryDataEntity
for a reviewer to create a temporary landing page.- Parameters:
uuid
- the id of thePrimaryDataEntity
versionNumber
- the number of thePrimaryDataEntityVersion
internalId
- the internal ID of the correspondingPublicReference
reviewerCode
- 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 thePrimaryDataEntityVersion
persistentIdentifier
- the ID type- Returns:
- the
PrimaryDataEntity
with thePersistentIdentifier
- Throws:
EdalException
- if noPersistentIdentifier
set
-
-