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 wrapPrimaryDataFile
functions 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.RemoteInputStream
sendFileToClient(long versionNumber, javax.security.auth.Subject subject)
com.healthmarketscience.rmiio.RemoteOutputStream
sendOutputStreamToFillFromClient(javax.security.auth.Subject subject)
void
setMetaData(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.RemoteException
Constructor forPrimaryDataFileWrapper
.- Parameters:
dataPort
- the data port for the remote objects.file
- aPrimaryDataFile
object.- 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:
setMetaData
in interfacePrimaryDataEntityRmiInterface
- Specified by:
setMetaData
in interfacePrimaryDataFileRmiInterface
- Overrides:
setMetaData
in classPrimaryDataEntityWrapper
- Parameters:
metadata
- the newMetaData
object 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 theMetaData
object.- See Also:
PrimaryDataEntity.setMetaData(MetaData)
-
getPublicReferences
public java.util.List<PublicReference> getPublicReferences(javax.security.auth.Subject subject) throws java.rmi.RemoteException
- Specified by:
getPublicReferences
in interfacePrimaryDataEntityRmiInterface
- Parameters:
subject
- the authenticated subject for check permission.- Returns:
- a
List
with all storedPublicReference
s of the currentPrimaryDataEntityVersion
of 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:
sendFileToClient
in interfacePrimaryDataFileRmiInterface
- Throws:
java.rmi.RemoteException
java.io.FileNotFoundException
java.io.IOException
-
sendOutputStreamToFillFromClient
public com.healthmarketscience.rmiio.RemoteOutputStream sendOutputStreamToFillFromClient(javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataFileException, PrimaryDataEntityVersionException
- Specified by:
sendOutputStreamToFillFromClient
in interfacePrimaryDataFileRmiInterface
- Throws:
java.rmi.RemoteException
PrimaryDataFileException
PrimaryDataEntityVersionException
-
-