Class ClientPrimaryDataFile
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientContext
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientPrimaryDataEntity
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientPrimaryDataFile
-
- All Implemented Interfaces:
java.lang.Comparable<ClientPrimaryDataEntity>
public class ClientPrimaryDataFile extends ClientPrimaryDataEntity
SampleClient version ofPrimaryDataFile
to use eDAL system like the stand-alone implementation.
-
-
Field Summary
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientPrimaryDataEntity
currentVersion, myEntityRMI
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientContext
clientDataManager
-
-
Constructor Summary
Constructors Constructor Description ClientPrimaryDataFile(PrimaryDataFileRmiInterface file, ClientDataManager client)
Constructor for ClientPrimaryDataFile.
-
Method Summary
Modifier and Type Method Description void
read(java.io.OutputStream outputStream)
void
setMetaData(MetaData new_metadata)
void
store(java.io.InputStream inputStream)
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientPrimaryDataEntity
addPublicReference, compareTo, delete, equals, getCurrentVersion, getID, getMetaData, getName, getParentDirectory, getPath, getPermissions, getPublicReferences, getVersionByDate, getVersionByRevisionNumber, getVersions, grantPermission, hashCode, isDirectory, move, rename, revokePermission, switchCurrentVersion
-
-
-
-
Constructor Detail
-
ClientPrimaryDataFile
public ClientPrimaryDataFile(PrimaryDataFileRmiInterface file, ClientDataManager client)
Constructor for ClientPrimaryDataFile.- Parameters:
file
- aPrimaryDataFileRmiInterface
object.client
- theClientDataManager
-
-
Method Detail
-
read
public void read(java.io.OutputStream outputStream) throws java.rmi.RemoteException, PrimaryDataFileException
- Throws:
java.rmi.RemoteException
PrimaryDataFileException
-
setMetaData
public void setMetaData(MetaData new_metadata) throws java.rmi.RemoteException, PrimaryDataEntityVersionException, MetaDataException
- Overrides:
setMetaData
in classClientPrimaryDataEntity
- Parameters:
new_metadata
- the newMetaData
object to set.- 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:
PrimaryDataEntityRmiInterface.setMetaData(MetaData, Subject)
-
store
public void store(java.io.InputStream inputStream) throws java.rmi.RemoteException, PrimaryDataFileException, PrimaryDataEntityVersionException
- Throws:
java.rmi.RemoteException
PrimaryDataFileException
PrimaryDataEntityVersionException
-
-