public class FileSystemImplementationProvider extends java.lang.Object implements ImplementationProvider
ImplementationProvider| Constructor and Description |
|---|
FileSystemImplementationProvider(EdalConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
MetaDataImplementation |
createMetaDataInstance()
Create an new instance of the
MetaData implementation class. |
java.lang.Class<? extends ApprovalServiceProvider> |
getApprovalServiceProvider()
Getter for the
ApprovalServiceProvider implementation class |
EdalConfiguration |
getConfiguration()
Getter for the configuration class with all parameter to start the eDAL
system.
|
java.nio.file.Path |
getDataPath()
Private getter for the dataPath
|
java.lang.Class<? extends HttpServiceProvider> |
getHttpServiceProvider()
Getter for the
HttpServiceProvider implementation class. |
IndexWriterThread |
getIndexThread() |
org.apache.log4j.Logger |
getLogger()
Getter for the current logger for system output
|
java.nio.file.Path |
getMountPath()
Getter for the mount path of the EDAL system.
|
java.lang.Class<? extends PermissionProvider> |
getPermissionProvider()
Getter for the
PermissionProvider implementation class. |
java.lang.Class<? extends PrimaryDataDirectory> |
getPrimaryDataDirectoryProvider()
Getter for the
PrimaryDataDirectory implementation class. |
java.lang.Class<? extends PrimaryDataFile> |
getPrimaryDataFileProvider()
Getter for the
PrimaryDataFile implementation class. |
java.lang.Class<? extends ServiceProvider> |
getServiceProvider()
Getter for the
ServiceProvider implementation class. |
org.hibernate.Session |
getSession()
Getter for a new
Session for public access. |
org.hibernate.stat.Statistics |
getStatistics()
Getter for the
Statistics of the SessionFactory |
PrimaryDataDirectory |
mount(java.util.List<java.lang.Class<? extends java.security.Principal>> supportedPrincipals)
Check if a root
PrimaryDataDirectory exists and return it or
create an new root PrimaryDataDirectory |
PrimaryDataEntity |
reloadPrimaryDataEntityByID(java.lang.String uuid,
long versionNumber)
Internal Function to reload a
PrimaryDataEntity with his
UUID. |
void |
shutdown()
Cleanup all resources used by the particular implementation provider
|
public FileSystemImplementationProvider(EdalConfiguration configuration)
public MetaDataImplementation createMetaDataInstance()
MetaData implementation class.createMetaDataInstance in interface ImplementationProviderMetaData.public java.lang.Class<? extends ApprovalServiceProvider> getApprovalServiceProvider()
ApprovalServiceProvider implementation classgetApprovalServiceProvider in interface ImplementationProviderApprovalServiceProviderpublic EdalConfiguration getConfiguration()
getConfiguration in interface ImplementationProviderEdalConfiguration class.public java.nio.file.Path getDataPath()
public IndexWriterThread getIndexThread()
public org.apache.log4j.Logger getLogger()
getLogger in interface ImplementationProviderpublic java.nio.file.Path getMountPath()
public java.lang.Class<? extends PermissionProvider> getPermissionProvider()
PermissionProvider implementation class.getPermissionProvider in interface ImplementationProviderPermissionProvider to be use.public java.lang.Class<? extends PrimaryDataDirectory> getPrimaryDataDirectoryProvider()
PrimaryDataDirectory implementation class.getPrimaryDataDirectoryProvider in interface ImplementationProviderPrimaryDataDirectory.public PrimaryDataEntity reloadPrimaryDataEntityByID(java.lang.String uuid, long versionNumber) throws EdalException
PrimaryDataEntity with his
UUID.reloadPrimaryDataEntityByID in interface ImplementationProvideruuid - the UUID of the PrimaryDataEntityversionNumber - the number of the PrimaryDataEntityVersionPrimaryDataEntityEdalException - if unable to find a PrimaryDataEntitypublic java.lang.Class<? extends PrimaryDataFile> getPrimaryDataFileProvider()
PrimaryDataFile implementation class.getPrimaryDataFileProvider in interface ImplementationProviderPrimaryDataFile.public org.hibernate.Session getSession()
Session for public access.
NOTE: use Session.close() after UnitOfWork !public org.hibernate.stat.Statistics getStatistics()
Statistics of the SessionFactoryStatisticspublic PrimaryDataDirectory mount(java.util.List<java.lang.Class<? extends java.security.Principal>> supportedPrincipals) throws PrimaryDataDirectoryException
PrimaryDataDirectory exists and return it or
create an new root PrimaryDataDirectorymount in interface ImplementationProvidersupportedPrincipals - the supported PrincipalsPrimaryDataDirectory.PrimaryDataDirectoryException - if unable to mount with the eDAL system.public void shutdown()
shutdown in interface ImplementationProviderpublic java.lang.Class<? extends ServiceProvider> getServiceProvider()
ImplementationProviderServiceProvider implementation class.getServiceProvider in interface ImplementationProviderServiceProvider.public java.lang.Class<? extends HttpServiceProvider> getHttpServiceProvider()
ImplementationProviderHttpServiceProvider implementation class.getHttpServiceProvider in interface ImplementationProviderHttpServiceProvider.