public abstract class ClientPrimaryDataEntity extends ClientContext implements Comparable<ClientPrimaryDataEntity>
PrimaryDataEntity to use eDAL system like the
stand-alone implementation.| Modifier and Type | Field and Description |
|---|---|
protected ClientPrimaryDataEntityVersion |
currentVersion |
protected de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.PrimaryDataEntityRmiInterface |
myEntityRMI |
clientDataManager| Constructor and Description |
|---|
ClientPrimaryDataEntity(de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.PrimaryDataEntityRmiInterface entity,
ClientDataManager client)
Constructor for ClientPrimaryDataEntity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPublicReference(de.ipk_gatersleben.bit.bi.edal.primary_data.reference.PersistentIdentifier identifierType) |
int |
compareTo(ClientPrimaryDataEntity other) |
void |
delete()
PrimaryDataEntity.delete() |
boolean |
equals(Object obj) |
ClientPrimaryDataEntityVersion |
getCurrentVersion()
PrimaryDataEntity.getCurrentVersion() |
String |
getID()
PrimaryDataEntity.getID() |
de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaData |
getMetaData()
PrimaryDataEntity.getMetaData() |
String |
getName()
PrimaryDataEntity.getName() |
ClientPrimaryDataDirectory |
getParentDirectory()
PrimaryDataEntity.getParentDirectory() |
String |
getPath()
PrimaryDataEntity.getPath() |
Map<Principal,List<de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods>> |
getPermissions()
PrimaryDataEntity.getPermissions() |
List<de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference> |
getPublicReferences()
PrimaryDataEntity.getPublicReferences() |
ClientPrimaryDataEntityVersion |
getVersionByDate(Calendar date)
PrimaryDataEntity.getVersionByDate(Calendar) |
ClientPrimaryDataEntityVersion |
getVersionByRevisionNumber(long revisionNumber)
PrimaryDataEntity.getVersionByRevisionNumber(long) |
SortedSet<ClientPrimaryDataEntityVersion> |
getVersions()
PrimaryDataEntity.getVersions() |
void |
grantPermission(Principal principal,
de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods method)
PrimaryDataEntity#grantPermission(Principal, Enum) |
int |
hashCode() |
boolean |
isDirectory()
PrimaryDataEntity.isDirectory() |
void |
move(ClientPrimaryDataDirectory destinationDirectory)
PrimaryDataEntity.move(PrimaryDataDirectory) |
void |
rename(String name)
PrimaryDataEntity.rename(String) |
void |
revokePermission(Principal principal,
de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods method)
PrimaryDataEntity#revokePermission(Principal, Enum) |
void |
setMetaData(de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaData new_metadata)
PrimaryDataEntity.setMetaData(MetaData) |
void |
switchCurrentVersion(ClientPrimaryDataEntityVersion version)
PrimaryDataEntity.switchCurrentVersion(PrimaryDataEntityVersion) |
protected de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.PrimaryDataEntityRmiInterface myEntityRMI
protected ClientPrimaryDataEntityVersion currentVersion
public ClientPrimaryDataEntity(de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.PrimaryDataEntityRmiInterface entity,
ClientDataManager client)
entity - a PrimaryDataEntityRmiInterface object.public void addPublicReference(de.ipk_gatersleben.bit.bi.edal.primary_data.reference.PersistentIdentifier identifierType)
throws RemoteException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException
RemoteExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityExceptionpublic void delete()
throws RemoteException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException
PrimaryDataEntity.delete()RemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException - if trying to delete the root PrimaryDataDirectoryde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException - if trying to delete a non-current
PrimaryDataEntityVersion.PrimaryDataEntityRmiInterface.delete(javax.security.auth.Subject)public ClientPrimaryDataEntityVersion getCurrentVersion() throws RemoteException
PrimaryDataEntity.getCurrentVersion()PrimaryDataEntityVersionRemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getCurrentVersion(javax.security.auth.Subject)public String getID() throws RemoteException
PrimaryDataEntity.getID()PrimaryDataEntity.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getID(javax.security.auth.Subject)public de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaData getMetaData()
throws RemoteException
PrimaryDataEntity.getMetaData()MetaData object of the current
PrimaryDataEntityVersion of this
PrimaryDataEntity.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getMetaData(javax.security.auth.Subject)public String getName() throws RemoteException
PrimaryDataEntity.getName()PrimaryDataEntity.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getName(javax.security.auth.Subject)public ClientPrimaryDataDirectory getParentDirectory() throws de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException, RemoteException
PrimaryDataEntity.getParentDirectory()PrimaryDataDirectory of this
PrimaryDataEntity.RemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException - if trying to access the parent PrimaryDataDirectory
of the root PrimaryDataDirectory.PrimaryDataEntityRmiInterface.getParentDirectory(javax.security.auth.Subject)public String getPath() throws RemoteException
PrimaryDataEntity.getPath()String to the
PrimaryDataEntity objectRemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getPath(javax.security.auth.Subject)public Map<Principal,List<de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods>> getPermissions() throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException
PrimaryDataEntity.getPermissions()RemoteExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityExceptionPrimaryDataEntityRmiInterface.getPermissions(Subject)public List<de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference> getPublicReferences() throws RemoteException
PrimaryDataEntity.getPublicReferences()List with all PublicReferences.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getPublicReferences(Subject)public SortedSet<ClientPrimaryDataEntityVersion> getVersions() throws RemoteException
PrimaryDataEntity.getVersions()SortedSet containing all
PrimaryDataEntityRemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getVersions(javax.security.auth.Subject)public ClientPrimaryDataEntityVersion getVersionByDate(Calendar date) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException
PrimaryDataEntity.getVersionByDate(Calendar)date - the date of the PrimaryDataEntityVersionPrimaryDataEntityVersionRemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException - if there are only older PrimaryDataEntityVersion
stored for this PrimaryDataEntityPrimaryDataEntity.getVersionByDate(Calendar)public ClientPrimaryDataEntityVersion getVersionByRevisionNumber(long revisionNumber) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException
PrimaryDataEntity.getVersionByRevisionNumber(long)revisionNumber - the number of the PrimaryDataEntityVersionPrimaryDataEntityVersionRemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException - if there is no PrimaryDataEntityVersion with this
version stored.PrimaryDataEntity.getVersionByRevisionNumber(long)public void grantPermission(Principal principal, de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods method) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException
PrimaryDataEntity#grantPermission(Principal, Enum)principal - to grant this methodmethod - Enum for a the methodRemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException - if can not found method to grant.public boolean isDirectory()
throws RemoteException
PrimaryDataEntity.isDirectory()true when it is a PrimaryDataDirectory;false otherwise.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.isDirectory(javax.security.auth.Subject)public void move(ClientPrimaryDataDirectory destinationDirectory) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException
PrimaryDataEntity.move(PrimaryDataDirectory)destinationDirectory - the new parent PrimaryDataDirectory for this
PrimaryDataEntity.RemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException - if trying to move the root PrimaryDataDirectory.PrimaryDataEntityRmiInterface.move(PrimaryDataDirectoryRmiInterface,
javax.security.auth.Subject)public void rename(String name) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException
PrimaryDataEntity.rename(String)name - the new name for this PrimaryDataEntityRemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException - if unable to set the new PrimaryDataEntityVersion.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException - if an PrimaryDataEntity with this name already
exists.PrimaryDataEntityRmiInterface.rename(java.lang.String,
javax.security.auth.Subject)public void revokePermission(Principal principal, de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods method) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException
PrimaryDataEntity#revokePermission(Principal, Enum)principal - to revoke this method.method - Enum for a the method.RemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException - if trying to revoke the EdalPermission for
PrimaryDataEntity#grantPermission(Principal, Enum) of
your own PrimaryDataEntity.public void setMetaData(de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaData new_metadata)
throws RemoteException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException,
de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaDataException
PrimaryDataEntity.setMetaData(MetaData)new_metadata - the new MetaData object to set.RemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException - if unable to store PrimaryDataEntityVersion.de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaDataException - if there are non valid value for element in the
MetaData object.AccessControlException - if the user with the current Subject is not allowed
to execute this method. The AccessControlException is
thrown by AspectJ.PrimaryDataEntityRmiInterface.setMetaData(MetaData, Subject)public void switchCurrentVersion(ClientPrimaryDataEntityVersion version) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException
PrimaryDataEntity.switchCurrentVersion(PrimaryDataEntityVersion)version - the new PrimaryDataEntityVersion to set as current
PrimaryDataEntityVersion.RemoteException - if unable to call remote function.de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException - if requested PrimaryDataEntityVersion is not
available or marked as deleted.public int compareTo(ClientPrimaryDataEntity other)
compareTo in interface Comparable<ClientPrimaryDataEntity>Copyright © 2013 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.