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 ofHttpServiceProvider
interface.
-
-
Constructor Summary
Constructors Constructor Description HttpServiceProviderImplementation()
-
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
public PrimaryDataEntity getPrimaryDataEntityByID(java.lang.String uuid, long versionNumber) throws EdalException
Getter to load aPrimaryDataEntity
object specified byUUID
and number of thePrimaryDataEntityVersion
.- Specified by:
getPrimaryDataEntityByID
in interfaceHttpServiceProvider
- 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
public PrimaryDataEntity getPrimaryDataEntityForPersistentIdentifier(java.lang.String uuid, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
Description copied from interface:HttpServiceProvider
Get aPrimaryDataEntity
for a givenPublicReference
- Specified by:
getPrimaryDataEntityForPersistentIdentifier
in interfaceHttpServiceProvider
- 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
public 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.- Specified by:
getPrimaryDataEntityForReviewer
in interfaceHttpServiceProvider
- 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
public PrimaryDataEntity getPrimaryDataEntityRekursiveForPersistenIdentifier(PrimaryDataEntity entity, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
Description copied from interface:HttpServiceProvider
- Specified by:
getPrimaryDataEntityRekursiveForPersistenIdentifier
in interfaceHttpServiceProvider
- 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
-
-