Interface ImplementationProvider
-
- All Known Implementing Classes:
FileSystemImplementationProvider
public interface ImplementationProvider
Interface that provide all necessary classes of a eDAL implementations.
-
-
Method Summary
Modifier and Type Method Description MetaData
createMetaDataInstance()
Create an new instance of theMetaData
implementation class.java.lang.Class<? extends ApprovalServiceProvider>
getApprovalServiceProvider()
Getter for theApprovalServiceProvider
implementation classEdalConfiguration
getConfiguration()
Getter for the configuration class with all parameter to start the eDAL system.java.lang.Class<? extends HttpServiceProvider>
getHttpServiceProvider()
Getter for theHttpServiceProvider
implementation class.org.apache.logging.log4j.Logger
getLogger()
Getter for the current logger for system outputjava.lang.Class<? extends PermissionProvider>
getPermissionProvider()
Getter for thePermissionProvider
implementation class.java.lang.Class<? extends PrimaryDataDirectory>
getPrimaryDataDirectoryProvider()
Getter for thePrimaryDataDirectory
implementation class.java.lang.Class<? extends PrimaryDataFile>
getPrimaryDataFileProvider()
Getter for thePrimaryDataFile
implementation class.java.lang.Class<? extends ServiceProvider>
getServiceProvider()
Getter for theServiceProvider
implementation class.PrimaryDataDirectory
mount(java.util.List<java.lang.Class<? extends java.security.Principal>> supportedPrincipals)
Check if a rootPrimaryDataDirectory
exists and return it or create an new rootPrimaryDataDirectory
PrimaryDataEntity
reloadPrimaryDataEntityByID(java.lang.String uuid, long versionNumber)
Internal Function to reload aPrimaryDataEntity
with hisUUID
.void
shutdown()
Cleanup all resources used by the particular implementation provider
-
-
-
Method Detail
-
createMetaDataInstance
MetaData createMetaDataInstance()
Create an new instance of theMetaData
implementation class.- Returns:
- a instance of the implementing class of
MetaData
.
-
getApprovalServiceProvider
java.lang.Class<? extends ApprovalServiceProvider> getApprovalServiceProvider()
Getter for theApprovalServiceProvider
implementation class- Returns:
- the implementing class of
ApprovalServiceProvider
-
getServiceProvider
java.lang.Class<? extends ServiceProvider> getServiceProvider()
Getter for theServiceProvider
implementation 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
EdalConfiguration
class.
-
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 thePermissionProvider
implementation class.- Returns:
- the instance of
PermissionProvider
to be use.
-
getPrimaryDataDirectoryProvider
java.lang.Class<? extends PrimaryDataDirectory> getPrimaryDataDirectoryProvider()
Getter for thePrimaryDataDirectory
implementation class.- Returns:
- the implementing class of
PrimaryDataDirectory
.
-
getHttpServiceProvider
java.lang.Class<? extends HttpServiceProvider> getHttpServiceProvider()
Getter for theHttpServiceProvider
implementation class.- Returns:
- the implementing class of
HttpServiceProvider
.
-
getPrimaryDataFileProvider
java.lang.Class<? extends PrimaryDataFile> getPrimaryDataFileProvider()
Getter for thePrimaryDataFile
implementation 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 rootPrimaryDataDirectory
exists and return it or create an new rootPrimaryDataDirectory
- Parameters:
supportedPrincipals
- the supportedPrincipal
s- 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 aPrimaryDataEntity
with hisUUID
.- Parameters:
uuid
- theUUID
of thePrimaryDataEntity
versionNumber
- 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
-
-