public abstract class ClientPrimaryDataEntity extends ClientContext implements java.lang.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(java.lang.Object obj) |
ClientPrimaryDataEntityVersion |
getCurrentVersion()
PrimaryDataEntity.getCurrentVersion() |
java.lang.String |
getID()
PrimaryDataEntity.getID() |
de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaData |
getMetaData()
PrimaryDataEntity.getMetaData() |
java.lang.String |
getName()
PrimaryDataEntity.getName() |
ClientPrimaryDataDirectory |
getParentDirectory()
PrimaryDataEntity.getParentDirectory() |
java.lang.String |
getPath()
PrimaryDataEntity.getPath() |
java.util.Map<java.security.Principal,java.util.List<de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods>> |
getPermissions()
PrimaryDataEntity.getPermissions() |
java.util.List<de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference> |
getPublicReferences()
PrimaryDataEntity.getPublicReferences() |
ClientPrimaryDataEntityVersion |
getVersionByDate(java.util.Calendar date)
PrimaryDataEntity.getVersionByDate(Calendar) |
ClientPrimaryDataEntityVersion |
getVersionByRevisionNumber(long revisionNumber)
PrimaryDataEntity.getVersionByRevisionNumber(long) |
java.util.SortedSet<ClientPrimaryDataEntityVersion> |
getVersions()
PrimaryDataEntity.getVersions() |
void |
grantPermission(java.security.Principal principal,
de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods method)
PrimaryDataEntity#grantPermission(Principal, Methods)}
|
int |
hashCode() |
boolean |
isDirectory()
PrimaryDataEntity.isDirectory() |
void |
move(ClientPrimaryDataDirectory destinationDirectory)
PrimaryDataEntity.move(PrimaryDataDirectory) |
void |
rename(java.lang.String name)
PrimaryDataEntity.rename(String) |
void |
revokePermission(java.security.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.client - the ClientDataManagerpublic void addPublicReference(de.ipk_gatersleben.bit.bi.edal.primary_data.reference.PersistentIdentifier identifierType)
throws java.rmi.RemoteException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException
java.rmi.RemoteExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityExceptionpublic void delete()
throws java.rmi.RemoteException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException
PrimaryDataEntity.delete()java.rmi.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 java.rmi.RemoteException
PrimaryDataEntity.getCurrentVersion()PrimaryDataEntityVersionjava.rmi.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getCurrentVersion(javax.security.auth.Subject)public java.lang.String getID()
throws java.rmi.RemoteException
PrimaryDataEntity.getID()PrimaryDataEntity.java.rmi.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 java.rmi.RemoteException
PrimaryDataEntity.getMetaData()MetaData object of the current
PrimaryDataEntityVersion of this
PrimaryDataEntity.java.rmi.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getMetaData(javax.security.auth.Subject)public java.lang.String getName()
throws java.rmi.RemoteException
PrimaryDataEntity.getName()PrimaryDataEntity.java.rmi.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, java.rmi.RemoteException
PrimaryDataEntity.getParentDirectory()PrimaryDataDirectory of this
PrimaryDataEntity.java.rmi.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 java.lang.String getPath()
throws java.rmi.RemoteException
PrimaryDataEntity.getPath()String to the
PrimaryDataEntity objectjava.rmi.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getPath(javax.security.auth.Subject)public java.util.Map<java.security.Principal,java.util.List<de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods>> getPermissions()
throws java.rmi.RemoteException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException
PrimaryDataEntity.getPermissions()java.rmi.RemoteException - if unable to call remote functionde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException - if unable to load permissionsPrimaryDataEntityRmiInterface.getPermissions(Subject)public java.util.List<de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference> getPublicReferences()
throws java.rmi.RemoteException
PrimaryDataEntity.getPublicReferences()List with all PublicReferences.java.rmi.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getPublicReferences(Subject)public java.util.SortedSet<ClientPrimaryDataEntityVersion> getVersions() throws java.rmi.RemoteException
PrimaryDataEntity.getVersions()SortedSet containing all
PrimaryDataEntityjava.rmi.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.getVersions(javax.security.auth.Subject)public ClientPrimaryDataEntityVersion getVersionByDate(java.util.Calendar date) throws java.rmi.RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException
PrimaryDataEntity.getVersionByDate(Calendar)date - the date of the PrimaryDataEntityVersionPrimaryDataEntityVersionjava.rmi.RemoteException - 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 java.rmi.RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException
PrimaryDataEntity.getVersionByRevisionNumber(long)revisionNumber - the number of the PrimaryDataEntityVersionPrimaryDataEntityVersionjava.rmi.RemoteException - 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(java.security.Principal principal,
de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods method)
throws java.rmi.RemoteException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException
principal - to grant this methodmethod - Enum for a the methodjava.rmi.RemoteException - 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 java.rmi.RemoteException
PrimaryDataEntity.isDirectory()true when it is a PrimaryDataDirectory;false otherwise.java.rmi.RemoteException - if unable to call remote function.PrimaryDataEntityRmiInterface.isDirectory(javax.security.auth.Subject)public void move(ClientPrimaryDataDirectory destinationDirectory) throws java.rmi.RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException
PrimaryDataEntity.move(PrimaryDataDirectory)destinationDirectory - the new parent PrimaryDataDirectory for this
PrimaryDataEntity.java.rmi.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(java.lang.String name)
throws java.rmi.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 PrimaryDataEntityjava.rmi.RemoteException - 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(java.security.Principal principal,
de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods method)
throws java.rmi.RemoteException,
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityException
principal - to revoke this method.method - Enum for a the method.java.rmi.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 java.rmi.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.java.rmi.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.java.security.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 java.rmi.RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException
PrimaryDataEntity.switchCurrentVersion(PrimaryDataEntityVersion)version - the new PrimaryDataEntityVersion to set as current
PrimaryDataEntityVersion.java.rmi.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 hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(ClientPrimaryDataEntity other)
compareTo in interface java.lang.Comparable<ClientPrimaryDataEntity>