public class HttpServiceProviderImplementation extends java.lang.Object implements HttpServiceProvider
HttpServiceProvider interface.| Constructor and Description |
|---|
HttpServiceProviderImplementation() |
| Modifier and Type | Method and Description |
|---|---|
PrimaryDataEntity |
getPrimaryDataEntityByID(java.lang.String uuid,
long versionNumber)
Getter to load a
PrimaryDataEntity object specified by
UUID and number of the PrimaryDataEntityVersion. |
PrimaryDataEntity |
getPrimaryDataEntityForPersistentIdentifier(java.lang.String uuid,
long versionNumber,
PersistentIdentifier persistentIdentifier)
Get a
PrimaryDataEntity for a given PublicReference |
PrimaryDataEntity |
getPrimaryDataEntityForReviewer(java.lang.String uuid,
long versionNumber,
java.lang.String internalId,
int reviewerCode)
Getter for a
PrimaryDataEntity for a reviewer to create a
temporary landing page. |
PrimaryDataEntity |
getPrimaryDataEntityRekursiveForPersistenIdentifier(PrimaryDataEntity entity,
long versionNumber,
PersistentIdentifier persistentIdentifier)
|
public PrimaryDataEntity getPrimaryDataEntityByID(java.lang.String uuid, long versionNumber) throws EdalException
PrimaryDataEntity object specified by
UUID and number of the PrimaryDataEntityVersion.getPrimaryDataEntityByID in interface HttpServiceProvideruuid - the UUID of the PrimaryDataEntity.versionNumber - the version number of the PrimaryDataEntityVersion.PrimaryDataEntityEdalException - if there is no PrimaryDataEntity with the specified
values.public PrimaryDataEntity getPrimaryDataEntityForPersistentIdentifier(java.lang.String uuid, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
HttpServiceProviderPrimaryDataEntity for a given PublicReferencegetPrimaryDataEntityForPersistentIdentifier in interface HttpServiceProvideruuid - the id of the PrimaryDataEntityversionNumber - the number of the PrimaryDataEntityVersionpersistentIdentifier - the type of the identifierPrimaryDataEntityEdalException - if unable to find a PrimaryDataEntitypublic PrimaryDataEntity getPrimaryDataEntityForReviewer(java.lang.String uuid, long versionNumber, java.lang.String internalId, int reviewerCode) throws EdalException
PrimaryDataEntity for a reviewer to create a
temporary landing page.getPrimaryDataEntityForReviewer in interface HttpServiceProvideruuid - the id of the PrimaryDataEntityversionNumber - the number of the PrimaryDataEntityVersioninternalId - the internal ID of the corresponding PublicReferencereviewerCode - the id to identify a reviewerPrimaryDataEntityEdalException - if unable to load the PrimaryDataEntitypublic PrimaryDataEntity getPrimaryDataEntityRekursiveForPersistenIdentifier(PrimaryDataEntity entity, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
HttpServiceProvidergetPrimaryDataEntityRekursiveForPersistenIdentifier in interface HttpServiceProviderentity - to search for the parent recursiveversionNumber - number of the PrimaryDataEntityVersionpersistentIdentifier - the ID typePrimaryDataEntity with the
PersistentIdentifierEdalException - if no PersistentIdentifier set