public interface ImplementationProvider
| Modifier and Type | Method and Description |
|---|---|
MetaData |
createMetaDataInstance()
Create an new instance of the
MetaData implementation class. |
Class<? extends ApprovalServiceProvider> |
getApprovalServiceProvider()
Getter for the
ApprovalServiceProvider implementation class |
Long |
getAvailableStorageSpace()
Getter for the available space in the mount path of eDAL.
|
EdalConfiguration |
getConfiguration()
Getter for the configuration class with all parameter to start the eDAL
system.
|
org.apache.log4j.Logger |
getLogger()
Getter for the current logger for system output
|
Class<? extends de.ipk_gatersleben.bit.bi.edal.primary_data.security.PermissionProvider> |
getPermissionProvider()
Getter for the
PermissionProvider implementation class. |
javax.mail.internet.InternetAddress |
getPreviousRootUser()
Load the email address of the existing root user.
|
Class<? extends PrimaryDataDirectory> |
getPrimaryDataDirectoryProvider()
Getter for the
PrimaryDataDirectory implementation class. |
PrimaryDataEntity |
getPrimaryDataEntityByID(String uuid,
long versionNumber)
Getter to load a
PrimaryDataEntity object specified by
UUID and number of the PrimaryDataEntityVersion. |
PrimaryDataEntity |
getPrimaryDataEntityForPersistenIdentifier(String uuid,
long versionNumber,
PersistentIdentifier persistentIdentifier) |
PrimaryDataEntity |
getPrimaryDataEntityForReviewer(String uuid,
long versionNumber,
String internalId,
int reviewerCode)
Getter for a
PrimaryDataEntity for a reviewer to create a
temporary landing page. |
Class<? extends PrimaryDataFile> |
getPrimaryDataFileProvider()
Getter for the
PrimaryDataFile implementation class. |
javax.mail.internet.InternetAddress |
getRootUser() |
List<Class<? extends Principal>> |
getSupportedPrincipals()
Getter all supported
Principals of the current eDAL system. |
Long |
getUsedStorageSpace()
Getter for the used space in the mount path of eDAL.
|
boolean |
isRootValidated(javax.mail.internet.InternetAddress address) |
PrimaryDataDirectory |
mount(List<Class<? extends Principal>> supportedPrincipals)
Check if a root
PrimaryDataDirectory exists and return it or
create an new root PrimaryDataDirectory |
PrimaryDataEntity |
reloadPrimaryDataEntityByID(String uuid,
long versionNumber) |
void |
shutdown()
Cleanup all resources used by the particular implementation provider
|
void |
storeRootUser(Subject subject,
javax.mail.internet.InternetAddress address,
UUID uuid) |
boolean |
validateRootUser(javax.mail.internet.InternetAddress address,
UUID uuid) |
MetaData createMetaDataInstance()
MetaData implementation class.MetaData.Long getAvailableStorageSpace() throws EdalException
EdalException - if no path is specified.org.apache.log4j.Logger getLogger()
Class<? extends de.ipk_gatersleben.bit.bi.edal.primary_data.security.PermissionProvider> getPermissionProvider()
PermissionProvider implementation class.PermissionProvider to be use.Class<? extends PrimaryDataDirectory> getPrimaryDataDirectoryProvider()
PrimaryDataDirectory implementation class.PrimaryDataDirectory.PrimaryDataEntity getPrimaryDataEntityByID(String uuid, long versionNumber) throws EdalException
PrimaryDataEntity object specified by
UUID and number of the PrimaryDataEntityVersion.uuid - the UUID of the PrimaryDataEntity.versionNumber - the version number of the PrimaryDataEntityVersion.PrimaryDataEntityEdalException - if there is no PrimaryDataEntity with the specified
values.Class<? extends PrimaryDataFile> getPrimaryDataFileProvider()
PrimaryDataFile implementation class.PrimaryDataFile.List<Class<? extends Principal>> getSupportedPrincipals() throws EdalException
Principals of the current eDAL system.PrincipalsEdalException - if unable to load Principals.Long getUsedStorageSpace() throws EdalException
EdalException - if no path is specified.PrimaryDataDirectory mount(List<Class<? extends Principal>> supportedPrincipals) throws PrimaryDataDirectoryException
PrimaryDataDirectory exists and return it or
create an new root PrimaryDataDirectoryPrimaryDataDirectory.PrimaryDataDirectoryException - if unable to mount with the eDAL system.void shutdown()
Class<? extends ApprovalServiceProvider> getApprovalServiceProvider()
ApprovalServiceProvider implementation classApprovalServiceProviderEdalConfiguration getConfiguration()
EdalConfiguration class.PrimaryDataEntity getPrimaryDataEntityForReviewer(String uuid, long versionNumber, String internalId, int reviewerCode) throws EdalException
PrimaryDataEntity for a reviewer to create a
temporary landing page.uuid - 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 PrimaryDataEntityjavax.mail.internet.InternetAddress getPreviousRootUser()
throws EdalException
EdalException - If unable to load existing root user.javax.mail.internet.InternetAddress getRootUser()
void storeRootUser(Subject subject, javax.mail.internet.InternetAddress address, UUID uuid) throws EdalException
EdalExceptionboolean isRootValidated(javax.mail.internet.InternetAddress address)
boolean validateRootUser(javax.mail.internet.InternetAddress address,
UUID uuid)
PrimaryDataEntity getPrimaryDataEntityForPersistenIdentifier(String uuid, long versionNumber, PersistentIdentifier persistentIdentifier) throws EdalException
EdalExceptionPrimaryDataEntity reloadPrimaryDataEntityByID(String uuid, long versionNumber) throws EdalException
EdalExceptionCopyright © 2014 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.