public class PrimaryDataEntityVersion extends Object implements Comparable<PrimaryDataEntityVersion>, Serializable
PrimaryDataEntity| Modifier | Constructor and Description |
|---|---|
protected |
PrimaryDataEntityVersion()
non public constructor for internal use only
|
protected |
PrimaryDataEntityVersion(PrimaryDataEntity entity,
boolean delete,
MetaData metadata)
Construct a new
PrimaryDataEntityVersion for a
PrimaryDataEntity. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPublicReference(PersistentIdentifier identifierType,
PrimaryDataEntity entity) |
int |
compareTo(PrimaryDataEntityVersion o)
Compares by
revision |
Calendar |
getCreationDate()
Getter for the field
creationDate. |
PrimaryDataEntity |
getEntity()
Getter for the field
entity. |
MetaData |
getMetaData()
Getter for the
MetaData of this PrimaryDataEntityVersion. |
String |
getName()
Convenience function to get the
EnumDublinCoreElements.TITLE of
the MetaData object |
Principal |
getOwner() |
PublicReference |
getPublicReference(PersistentIdentifier identifierType)
Return a specific PublicReference defined by the
PersistentIdentifier type. |
List<PublicReference> |
getPublicReferences() |
long |
getRevision()
Getter for the field
revision. |
Calendar |
getRevisionDate()
Getter for the field
revisionDate. |
URL |
getURL()
|
boolean |
isDeleted()
Check if this
PrimaryDataEntityVersion is marked as deleted. |
void |
setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress)
Set all
PublicReferences of this PrimaryDataEntityVersion
of this PrimaryDataEntity will be requested to set public without
lock date. |
void |
setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress,
Calendar releaseDate)
Set all
PublicReferences of this PrimaryDataEntityVersion
of this PrimaryDataEntity will be requested to set public. |
protected void |
setCreationDate(Calendar creationDate)
Setter for the field
creationDate. |
protected void |
setDeleted(boolean isDeleted)
Setter for the
isDeleted flag. |
protected void |
setEntity(PrimaryDataEntity entity)
Setter for the field
entity. |
protected void |
setMetaData(MetaData metadata)
Setter for the
MetaData of this PrimaryDataEntityVersion. |
protected void |
setOwner(Principal owner) |
protected void |
setPublicReferences(List<PublicReference> references) |
protected void |
setRevision(long revision)
Setter for the field
revision. |
protected void |
setRevisionDate(Calendar revisionDate)
Setter for the field
revisionDate. |
String |
toString() |
protected PrimaryDataEntityVersion()
protected PrimaryDataEntityVersion(PrimaryDataEntity entity, boolean delete, MetaData metadata) throws PrimaryDataEntityVersionException
PrimaryDataEntityVersion for a
PrimaryDataEntity.
Revision is increased from previous revision.entity - the PrimaryDataEntity for this
PrimaryDataEntityVersion.delete - set this PrimaryDataEntityVersion to be deleted.metadata - the MetaData for this PrimaryDataEntityVersion
.PrimaryDataEntityVersionException - if the last PrimaryDataEntityVersion is already
deleted.protected void addPublicReference(PersistentIdentifier identifierType, PrimaryDataEntity entity) throws PrimaryDataEntityException
PrimaryDataEntityExceptionpublic int compareTo(PrimaryDataEntityVersion o)
revisioncompareTo in interface Comparable<PrimaryDataEntityVersion>public Calendar getCreationDate()
creationDate.public PrimaryDataEntity getEntity()
entity.public final String getName()
EnumDublinCoreElements.TITLE of
the MetaData objectPrimaryDataEntityVersion from the
MetaData.public MetaData getMetaData()
MetaData of this PrimaryDataEntityVersion.MetaData of this PrimaryDataEntityVersion.public PublicReference getPublicReference(PersistentIdentifier identifierType) throws PrimaryDataEntityVersionException
PersistentIdentifier type.identifierType - of the PublicReferencePublicReferencePrimaryDataEntityVersionException - if there is no PublicReference with this
PersistentIdentifier defined.public List<PublicReference> getPublicReferences()
List of PublicReferencepublic long getRevision()
revision.public Calendar getRevisionDate()
revisionDate.public URL getURL() throws PrimaryDataEntityException
URLPrimaryDataEntityException - if unable to load the URL.public boolean isDeleted()
PrimaryDataEntityVersion is marked as deleted.true if the PrimaryDataEntityVersion is
marked as deleted;false otherwise.public void setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress,
Calendar releaseDate)
throws PublicReferenceException
PublicReferences of this PrimaryDataEntityVersion
of this PrimaryDataEntity will be requested to set public.emailNotificationAddress - the eMail address of the requesting user.releaseDate - the release date for the PublicReferences.PublicReferenceException - if unable to request the PublicReference to set
public.public void setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress)
throws PublicReferenceException
PublicReferences of this PrimaryDataEntityVersion
of this PrimaryDataEntity will be requested to set public without
lock date.emailNotificationAddress - the eMail address of the requesting user.PublicReferenceException - if unable to request the PublicReference to set
public.protected void setCreationDate(Calendar creationDate)
creationDate.creationDate - the creationDate to set.protected void setDeleted(boolean isDeleted)
isDeleted flag.isDeleted - the isDeleted to set.protected void setEntity(PrimaryDataEntity entity)
entity.entity - the entity to setprotected void setMetaData(MetaData metadata)
MetaData of this PrimaryDataEntityVersion.metadata - the MetaData to set.protected void setPublicReferences(List<PublicReference> references)
protected void setRevision(long revision)
revision.revision - the revision to setprotected void setRevisionDate(Calendar revisionDate)
revisionDate.revisionDate - the revisionDate to set.public Principal getOwner()
protected void setOwner(Principal owner)
owner - the owner to setCopyright © 2016 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.