Interface DataManagerRmiInterface
-
- All Superinterfaces:
java.rmi.Remote
- All Known Implementing Classes:
DataManagerWrapper
public interface DataManagerRmiInterface extends java.rmi.RemoteRMI Interface forDataManagerobjects.
-
-
Method Summary
Modifier and Type Method Description javax.security.auth.Subjectauthenticate(Authentication authentication)authenticate a user and return on success aSubjectMetaDatacreateMetaDataInstance()java.lang.LonggetAvailableStorageSpace()java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>>getDefaultPermissions()PrimaryDataDirectoryRmiInterfacegetRootDirectory(javax.security.auth.Subject subject)java.util.List<java.lang.Class<? extends java.security.Principal>>getSupportedPrincipals()Get all supportedPrincipals of the current eDAL system.java.lang.LonggetUsedStorageSpace()voidreceiveTestData(com.healthmarketscience.rmiio.RemoteOutputStream outputStream)voidsendEmail(Authentication authentication, java.lang.String emailMessage, java.lang.String emailSubject)Request the server to send a e-mail to an authenticated subjectvoidsendEmail(Authentication authentication, java.lang.String emailMessage, java.lang.String emailSubject, java.net.URL attachment)Request the server to send a e-mail with attachment to an authenticated subjectcom.healthmarketscience.rmiio.RemoteInputStreamsendFileToClient(java.lang.String fileName)com.healthmarketscience.rmiio.RemoteOutputStreamsendOutputStreamToFillFromClient(java.lang.String fileName)voidshutdown()
-
-
-
Method Detail
-
authenticate
javax.security.auth.Subject authenticate(Authentication authentication) throws java.rmi.RemoteException, EdalAuthenticateException
authenticate a user and return on success aSubject- Parameters:
authentication-Authentication- Returns:
- the authenticated
Subject - Throws:
java.rmi.RemoteException- if unable to call remote function.EdalAuthenticateException- if unable to authenticate user
-
createMetaDataInstance
MetaData createMetaDataInstance() throws java.rmi.RemoteException
- Returns:
- a new
MetaDataobject. - Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
ImplementationProvider.createMetaDataInstance()
-
getAvailableStorageSpace
java.lang.Long getAvailableStorageSpace() throws java.rmi.RemoteException, EdalException- Returns:
- available space
- Throws:
java.rmi.RemoteException- if unable to call remote function.EdalException- if no mount path is set.- See Also:
DataManager.getAvailableStorageSpace()
-
getDefaultPermissions
java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>> getDefaultPermissions() throws java.rmi.RemoteException
- Returns:
- map with all default permissions.
- Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
DataManager.getDefaultPermissions()
-
getRootDirectory
PrimaryDataDirectoryRmiInterface getRootDirectory(javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataDirectoryException
- Parameters:
subject- the authenticated subject- Returns:
- the root
PrimaryDataDirectoryfor the passed implementation - Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataDirectoryException- if any.- See Also:
DataManager.getRootDirectory(de.ipk_gatersleben.bit.bi.edal.primary_data.file.ImplementationProvider, Subject)
-
getSupportedPrincipals
java.util.List<java.lang.Class<? extends java.security.Principal>> getSupportedPrincipals() throws java.rmi.RemoteException, EdalExceptionGet all supportedPrincipals of the current eDAL system.- Returns:
- the list of supported
Principals - Throws:
java.rmi.RemoteException- if unable to call remote function.EdalException- if unable to loadPrincipals.
-
getUsedStorageSpace
java.lang.Long getUsedStorageSpace() throws java.rmi.RemoteException, EdalException- Returns:
- used space
- Throws:
java.rmi.RemoteException- if unable to call remote function.EdalException- if no mount path is set.- See Also:
DataManager.getAvailableStorageSpace()
-
receiveTestData
void receiveTestData(com.healthmarketscience.rmiio.RemoteOutputStream outputStream) throws java.rmi.RemoteException, java.io.IOException- Throws:
java.rmi.RemoteExceptionjava.io.IOException
-
sendEmail
void sendEmail(Authentication authentication, java.lang.String emailMessage, java.lang.String emailSubject) throws java.rmi.RemoteException
Request the server to send a e-mail to an authenticated subject- Parameters:
authentication- the user authenticationemailMessage- the content of the e-mailemailSubject- the subject of the e-mail- Throws:
java.rmi.RemoteException- if unable to send eMail
-
sendEmail
void sendEmail(Authentication authentication, java.lang.String emailMessage, java.lang.String emailSubject, java.net.URL attachment) throws java.rmi.RemoteException
Request the server to send a e-mail with attachment to an authenticated subject- Parameters:
authentication- the user authenticationemailMessage- the content of the e-mailemailSubject- the subject of the e-mailattachment- the attachedURL- Throws:
java.rmi.RemoteException- if unable to send eMail
-
sendFileToClient
com.healthmarketscience.rmiio.RemoteInputStream sendFileToClient(java.lang.String fileName) throws java.rmi.RemoteException, java.io.FileNotFoundException, java.io.IOException- Throws:
java.rmi.RemoteExceptionjava.io.FileNotFoundExceptionjava.io.IOException
-
sendOutputStreamToFillFromClient
com.healthmarketscience.rmiio.RemoteOutputStream sendOutputStreamToFillFromClient(java.lang.String fileName) throws java.rmi.RemoteException, java.io.FileNotFoundException- Throws:
java.rmi.RemoteExceptionjava.io.FileNotFoundException
-
shutdown
void shutdown() throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
ImplementationProvider.shutdown()
-
-