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 de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.PrimaryDataEntityVersionRmiInterfacemyEntityVersionRMI-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.rmi.client.ClientContext
clientDataManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClientPrimaryDataEntityVersion(de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.PrimaryDataEntityVersionRmiInterface version, ClientDataManager client)
-
Method Summary
Modifier and Type Method Description intcompareTo(ClientPrimaryDataEntityVersion o)java.util.CalendargetCreationDate()PrimaryDataEntityVersion.getCreationDate()ClientPrimaryDataEntitygetEntity()PrimaryDataEntityVersion.getEntity()de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaDatagetMetaData()PrimaryDataEntityVersion.getMetaData()java.security.PrincipalgetOwner()PrimaryDataEntityVersion.getOwner()de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReferencegetPublicReference(de.ipk_gatersleben.bit.bi.edal.primary_data.reference.PersistentIdentifier identifierType)PrimaryDataEntityVersion.getPublicReference(PersistentIdentifier)java.util.List<de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference>getPublicReferences()PrimaryDataEntityVersion.getPublicReferences()java.lang.LonggetRevision()PrimaryDataEntityVersion.getRevision()java.util.CalendargetRevisionDate()PrimaryDataEntityVersion.getRevisionDate()booleanisDeleted()PrimaryDataEntityVersion.isDeleted()voidsetAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress, java.util.Calendar releaseDate)PrimaryDataEntityVersion.setAllReferencesPublic(InternetAddress)
-
-
-
Constructor Detail
-
ClientPrimaryDataEntityVersion
protected ClientPrimaryDataEntityVersion(de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.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.RemoteExceptionPrimaryDataEntityVersion.getCreationDate()- Returns:
- creationDate
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getEntity
public ClientPrimaryDataEntity getEntity() throws java.rmi.RemoteException
PrimaryDataEntityVersion.getEntity()- Returns:
- the corresponding
ClientPrimaryDataEntity - Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getMetaData
public de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.MetaData getMetaData() throws java.rmi.RemoteExceptionPrimaryDataEntityVersion.getMetaData()- Returns:
- the corresponding meta data
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getOwner
public java.security.Principal getOwner() throws java.rmi.RemoteExceptionPrimaryDataEntityVersion.getOwner()- Returns:
- the owner.
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getPublicReference
public de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference getPublicReference(de.ipk_gatersleben.bit.bi.edal.primary_data.reference.PersistentIdentifier identifierType) throws java.rmi.RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionExceptionPrimaryDataEntityVersion.getPublicReference(PersistentIdentifier)- Parameters:
identifierType- of thePublicReference- Returns:
- the found
PublicReference - Throws:
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException- if there is noPublicReferencewith thisPersistentIdentifierdefined.java.rmi.RemoteException- if unable to call remote function.
-
getPublicReferences
public java.util.List<de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference> getPublicReferences() throws java.rmi.RemoteExceptionPrimaryDataEntityVersion.getPublicReferences()- Returns:
- read only
ListofPublicReference. - Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getRevision
public java.lang.Long getRevision() throws java.rmi.RemoteExceptionPrimaryDataEntityVersion.getRevision()- Returns:
- the revision number
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getRevisionDate
public java.util.Calendar getRevisionDate() throws java.rmi.RemoteExceptionPrimaryDataEntityVersion.getRevisionDate()- Returns:
- revisionDate
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
isDeleted
public boolean isDeleted() throws java.rmi.RemoteExceptionPrimaryDataEntityVersion.isDeleted()- 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 de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReferenceException, java.rmi.RemoteExceptionPrimaryDataEntityVersion.setAllReferencesPublic(InternetAddress)- Parameters:
emailNotificationAddress- the eMail address of the requesting user.releaseDate- the release data- Throws:
de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReferenceException- if unable to request thePublicReferenceto set public.java.rmi.RemoteException- if unable to call remote function.
-
-