Class PrimaryDataFileWrapper
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- de.ipk_gatersleben.bit.bi.edal.rmi.server.wrapper.PrimaryDataEntityWrapper
-
- de.ipk_gatersleben.bit.bi.edal.rmi.server.wrapper.PrimaryDataFileWrapper
-
- All Implemented Interfaces:
PrimaryDataEntityRmiInterface,PrimaryDataFileRmiInterface,java.io.Serializable,java.rmi.Remote
public class PrimaryDataFileWrapper extends PrimaryDataEntityWrapper implements PrimaryDataFileRmiInterface
Wrapper class to wrapPrimaryDataFilefunctions on server side.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.rmi.server.wrapper.PrimaryDataEntityWrapper
myDataPort, myEntity
-
-
Constructor Summary
Constructors Constructor Description PrimaryDataFileWrapper(int dataPort, PrimaryDataFile file)Constructor forPrimaryDataFileWrapper.
-
Method Summary
Modifier and Type Method Description java.util.List<PublicReference>getPublicReferences(javax.security.auth.Subject subject)com.healthmarketscience.rmiio.RemoteInputStreamsendFileToClient(long versionNumber, javax.security.auth.Subject subject)com.healthmarketscience.rmiio.RemoteOutputStreamsendOutputStreamToFillFromClient(javax.security.auth.Subject subject)voidsetMetaData(MetaData metadata, javax.security.auth.Subject subject)-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.rmi.server.wrapper.PrimaryDataEntityWrapper
addPublicReference, delete, getCurrentVersion, getID, getMetaData, getName, getParentDirectory, getPath, getPermissions, getVersionByDate, getVersionByRevisionNumber, getVersions, grantPermission, isDirectory, move, rename, revokePermission
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.PrimaryDataEntityRmiInterface
addPublicReference, delete, getCurrentVersion, getID, getMetaData, getName, getParentDirectory, getPath, getPermissions, getVersionByDate, getVersionByRevisionNumber, getVersions, grantPermission, isDirectory, move, rename, revokePermission
-
-
-
-
Constructor Detail
-
PrimaryDataFileWrapper
public PrimaryDataFileWrapper(int dataPort, PrimaryDataFile file) throws java.rmi.RemoteExceptionConstructor forPrimaryDataFileWrapper.- Parameters:
dataPort- the data port for the remote objects.file- aPrimaryDataFileobject.- Throws:
java.rmi.RemoteException- is unable to call remote function.
-
-
Method Detail
-
setMetaData
public void setMetaData(MetaData metadata, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataEntityVersionException, MetaDataException
- Specified by:
setMetaDatain interfacePrimaryDataEntityRmiInterface- Specified by:
setMetaDatain interfacePrimaryDataFileRmiInterface- Overrides:
setMetaDatain classPrimaryDataEntityWrapper- Parameters:
metadata- the newMetaDataobject to set.subject- the authenticated subject for check permission.- Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataEntityVersionException- if unable to storePrimaryDataEntityVersion.MetaDataException- if there are non valid value for element in theMetaDataobject.- See Also:
PrimaryDataEntity.setMetaData(MetaData)
-
getPublicReferences
public java.util.List<PublicReference> getPublicReferences(javax.security.auth.Subject subject) throws java.rmi.RemoteException
- Specified by:
getPublicReferencesin interfacePrimaryDataEntityRmiInterface- Parameters:
subject- the authenticated subject for check permission.- Returns:
- a
Listwith all storedPublicReferences of the currentPrimaryDataEntityVersionof thisPrimaryDataEntity. - Throws:
java.rmi.RemoteException- if unable to call remote function.
-
sendFileToClient
public com.healthmarketscience.rmiio.RemoteInputStream sendFileToClient(long versionNumber, javax.security.auth.Subject subject) throws java.rmi.RemoteException, java.io.FileNotFoundException, java.io.IOException- Specified by:
sendFileToClientin interfacePrimaryDataFileRmiInterface- Throws:
java.rmi.RemoteExceptionjava.io.FileNotFoundExceptionjava.io.IOException
-
sendOutputStreamToFillFromClient
public com.healthmarketscience.rmiio.RemoteOutputStream sendOutputStreamToFillFromClient(javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataFileException, PrimaryDataEntityVersionException- Specified by:
sendOutputStreamToFillFromClientin interfacePrimaryDataFileRmiInterface- Throws:
java.rmi.RemoteExceptionPrimaryDataFileExceptionPrimaryDataEntityVersionException
-
-