Interface ImplementationProvider
-
- All Known Implementing Classes:
FileSystemImplementationProvider
public interface ImplementationProviderInterface that provide all necessary classes of a eDAL implementations.
-
-
Method Summary
Modifier and Type Method Description MetaDatacreateMetaDataInstance()Create an new instance of theMetaDataimplementation class.java.lang.Class<? extends ApprovalServiceProvider>getApprovalServiceProvider()Getter for theApprovalServiceProviderimplementation classEdalConfigurationgetConfiguration()Getter for the configuration class with all parameter to start the eDAL system.java.lang.Class<? extends HttpServiceProvider>getHttpServiceProvider()Getter for theHttpServiceProviderimplementation class.org.apache.logging.log4j.LoggergetLogger()Getter for the current logger for system outputjava.lang.Class<? extends PermissionProvider>getPermissionProvider()Getter for thePermissionProviderimplementation class.java.lang.Class<? extends PrimaryDataDirectory>getPrimaryDataDirectoryProvider()Getter for thePrimaryDataDirectoryimplementation class.java.lang.Class<? extends PrimaryDataFile>getPrimaryDataFileProvider()Getter for thePrimaryDataFileimplementation class.java.lang.Class<? extends ServiceProvider>getServiceProvider()Getter for theServiceProviderimplementation class.PrimaryDataDirectorymount(java.util.List<java.lang.Class<? extends java.security.Principal>> supportedPrincipals)Check if a rootPrimaryDataDirectoryexists and return it or create an new rootPrimaryDataDirectoryPrimaryDataEntityreloadPrimaryDataEntityByID(java.lang.String uuid, long versionNumber)Internal Function to reload aPrimaryDataEntitywith hisUUID.voidshutdown()Cleanup all resources used by the particular implementation provider
-
-
-
Method Detail
-
createMetaDataInstance
MetaData createMetaDataInstance()
Create an new instance of theMetaDataimplementation class.- Returns:
- a instance of the implementing class of
MetaData.
-
getApprovalServiceProvider
java.lang.Class<? extends ApprovalServiceProvider> getApprovalServiceProvider()
Getter for theApprovalServiceProviderimplementation class- Returns:
- the implementing class of
ApprovalServiceProvider
-
getServiceProvider
java.lang.Class<? extends ServiceProvider> getServiceProvider()
Getter for theServiceProviderimplementation class.- Returns:
- the implementing class of
ServiceProvider.
-
getConfiguration
EdalConfiguration getConfiguration()
Getter for the configuration class with all parameter to start the eDAL system.- Returns:
- an
EdalConfigurationclass.
-
getLogger
org.apache.logging.log4j.Logger getLogger()
Getter for the current logger for system output- Returns:
- Logger
-
getPermissionProvider
java.lang.Class<? extends PermissionProvider> getPermissionProvider()
Getter for thePermissionProviderimplementation class.- Returns:
- the instance of
PermissionProviderto be use.
-
getPrimaryDataDirectoryProvider
java.lang.Class<? extends PrimaryDataDirectory> getPrimaryDataDirectoryProvider()
Getter for thePrimaryDataDirectoryimplementation class.- Returns:
- the implementing class of
PrimaryDataDirectory.
-
getHttpServiceProvider
java.lang.Class<? extends HttpServiceProvider> getHttpServiceProvider()
Getter for theHttpServiceProviderimplementation class.- Returns:
- the implementing class of
HttpServiceProvider.
-
getPrimaryDataFileProvider
java.lang.Class<? extends PrimaryDataFile> getPrimaryDataFileProvider()
Getter for thePrimaryDataFileimplementation class.- Returns:
- the implementing class of
PrimaryDataFile.
-
mount
PrimaryDataDirectory mount(java.util.List<java.lang.Class<? extends java.security.Principal>> supportedPrincipals) throws PrimaryDataDirectoryException
Check if a rootPrimaryDataDirectoryexists and return it or create an new rootPrimaryDataDirectory- Parameters:
supportedPrincipals- the supportedPrincipals- Returns:
- the root
PrimaryDataDirectory. - Throws:
PrimaryDataDirectoryException- if unable to mount with the eDAL system.
-
reloadPrimaryDataEntityByID
PrimaryDataEntity reloadPrimaryDataEntityByID(java.lang.String uuid, long versionNumber) throws EdalException
Internal Function to reload aPrimaryDataEntitywith hisUUID.- Parameters:
uuid- theUUIDof thePrimaryDataEntityversionNumber- the number of thePrimaryDataEntityVersion- Returns:
- the
PrimaryDataEntity - Throws:
EdalException- if unable to find aPrimaryDataEntity
-
shutdown
void shutdown()
Cleanup all resources used by the particular implementation provider
-
-