Interface DataManagerRmiInterface
-
- All Superinterfaces:
java.rmi.Remote
- All Known Implementing Classes:
DataManagerWrapper
public interface DataManagerRmiInterface extends java.rmi.Remote
RMI Interface forDataManager
objects.
-
-
Method Summary
Modifier and Type Method Description javax.security.auth.Subject
authenticate(Authentication authentication)
authenticate a user and return on success aSubject
MetaData
createMetaDataInstance()
java.lang.Long
getAvailableStorageSpace()
java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>>
getDefaultPermissions()
PrimaryDataDirectoryRmiInterface
getRootDirectory(javax.security.auth.Subject subject)
java.util.List<java.lang.Class<? extends java.security.Principal>>
getSupportedPrincipals()
Get all supportedPrincipal
s of the current eDAL system.java.lang.Long
getUsedStorageSpace()
void
receiveTestData(com.healthmarketscience.rmiio.RemoteOutputStream outputStream)
void
sendEmail(Authentication authentication, java.lang.String emailMessage, java.lang.String emailSubject)
Request the server to send a e-mail to an authenticated subjectvoid
sendEmail(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.RemoteInputStream
sendFileToClient(java.lang.String fileName)
com.healthmarketscience.rmiio.RemoteOutputStream
sendOutputStreamToFillFromClient(java.lang.String fileName)
void
shutdown()
-
-
-
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
MetaData
object. - 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
PrimaryDataDirectory
for 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, EdalException
Get all supportedPrincipal
s of the current eDAL system.- Returns:
- the list of supported
Principal
s - Throws:
java.rmi.RemoteException
- if unable to call remote function.EdalException
- if unable to loadPrincipal
s.
-
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.RemoteException
java.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.RemoteException
java.io.FileNotFoundException
java.io.IOException
-
sendOutputStreamToFillFromClient
com.healthmarketscience.rmiio.RemoteOutputStream sendOutputStreamToFillFromClient(java.lang.String fileName) throws java.rmi.RemoteException, java.io.FileNotFoundException
- Throws:
java.rmi.RemoteException
java.io.FileNotFoundException
-
shutdown
void shutdown() throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- if unable to call remote function.- See Also:
ImplementationProvider.shutdown()
-
-