Class ClientPrimaryDataEntityVersion
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientContext
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientPrimaryDataEntityVersion
-
- All Implemented Interfaces:
java.lang.Comparable<ClientPrimaryDataEntityVersion>
public class ClientPrimaryDataEntityVersion extends ClientContext implements java.lang.Comparable<ClientPrimaryDataEntityVersion>
SampleClient version ofPrimaryDataEntityVersion
to use eDAL system like the stand-alone implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected PrimaryDataEntityVersionRmiInterface
myEntityVersionRMI
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientContext
clientDataManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClientPrimaryDataEntityVersion(PrimaryDataEntityVersionRmiInterface version, ClientDataManager client)
-
Method Summary
Modifier and Type Method Description int
compareTo(ClientPrimaryDataEntityVersion o)
java.util.Calendar
getCreationDate()
ClientPrimaryDataEntity
getEntity()
MetaData
getMetaData()
java.security.Principal
getOwner()
PublicReference
getPublicReference(PersistentIdentifier identifierType)
java.util.List<PublicReference>
getPublicReferences()
java.lang.Long
getRevision()
java.util.Calendar
getRevisionDate()
boolean
isDeleted()
void
setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress, java.util.Calendar releaseDate)
-
-
-
Field Detail
-
myEntityVersionRMI
protected PrimaryDataEntityVersionRmiInterface myEntityVersionRMI
-
-
Constructor Detail
-
ClientPrimaryDataEntityVersion
protected ClientPrimaryDataEntityVersion(PrimaryDataEntityVersionRmiInterface version, ClientDataManager client)
-
-
Method Detail
-
compareTo
public int compareTo(ClientPrimaryDataEntityVersion o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ClientPrimaryDataEntityVersion>
-
getCreationDate
public java.util.Calendar getCreationDate() throws java.rmi.RemoteException
- Returns:
- creationDate
- Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getEntity
public ClientPrimaryDataEntity getEntity() throws java.rmi.RemoteException
- Returns:
- the corresponding
ClientPrimaryDataEntity
- Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getMetaData
public MetaData getMetaData() throws java.rmi.RemoteException
- Returns:
- the corresponding meta data
- Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getOwner
public java.security.Principal getOwner() throws java.rmi.RemoteException
- Returns:
- the owner.
- Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getPublicReference
public PublicReference getPublicReference(PersistentIdentifier identifierType) throws java.rmi.RemoteException, PrimaryDataEntityVersionException
- Parameters:
identifierType
- of thePublicReference
- Returns:
- the found
PublicReference
- Throws:
PrimaryDataEntityVersionException
- if there is noPublicReference
with thisPersistentIdentifier
defined.java.rmi.RemoteException
- if unable to call remote function.
-
getPublicReferences
public java.util.List<PublicReference> getPublicReferences() throws java.rmi.RemoteException
- Returns:
- read only
List
ofPublicReference
. - Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getRevision
public java.lang.Long getRevision() throws java.rmi.RemoteException
- Returns:
- the revision number
- Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getRevisionDate
public java.util.Calendar getRevisionDate() throws java.rmi.RemoteException
- Returns:
- revisionDate
- Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
isDeleted
public boolean isDeleted() throws java.rmi.RemoteException
- Returns:
true
if theClientPrimaryDataEntityVersion
is marked as deleted;false
otherwise.- Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
setAllReferencesPublic
public void setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress, java.util.Calendar releaseDate) throws PublicReferenceException, java.rmi.RemoteException
- Parameters:
emailNotificationAddress
- the eMail address of the requesting user.releaseDate
- the release data- Throws:
PublicReferenceException
- if unable to request thePublicReference
to set public.java.rmi.RemoteException
- if unable to call remote function.
-
-