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 ofPrimaryDataEntityVersionto use eDAL system like the stand-alone implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected PrimaryDataEntityVersionRmiInterfacemyEntityVersionRMI-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientContext
clientDataManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClientPrimaryDataEntityVersion(PrimaryDataEntityVersionRmiInterface version, ClientDataManager client)
-
Method Summary
Modifier and Type Method Description intcompareTo(ClientPrimaryDataEntityVersion o)java.util.CalendargetCreationDate()ClientPrimaryDataEntitygetEntity()MetaDatagetMetaData()java.security.PrincipalgetOwner()PublicReferencegetPublicReference(PersistentIdentifier identifierType)java.util.List<PublicReference>getPublicReferences()java.lang.LonggetRevision()java.util.CalendargetRevisionDate()booleanisDeleted()voidsetAllReferencesPublic(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:
compareToin 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 noPublicReferencewith thisPersistentIdentifierdefined.java.rmi.RemoteException- if unable to call remote function.
-
getPublicReferences
public java.util.List<PublicReference> getPublicReferences() throws java.rmi.RemoteException
- Returns:
- read only
ListofPublicReference. - 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:
trueif theClientPrimaryDataEntityVersionis marked as deleted;falseotherwise.- 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 thePublicReferenceto set public.java.rmi.RemoteException- if unable to call remote function.
-
-