public class PublicReference extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected PersistentIdentifier |
identifierType |
| Modifier | Constructor and Description |
|---|---|
protected |
PublicReference()
Default constructor -> only for internal use.
|
protected |
PublicReference(PrimaryDataEntityVersion entityVersion,
PersistentIdentifier identifierType)
Constructor generate a new
PublicReference object and use the
class that belongs to the PersistentIdentifier. |
| Modifier and Type | Method and Description |
|---|---|
void |
changeReleaseDate(Calendar releaseDate) |
boolean |
equals(Object obj) |
Calendar |
getAcceptedDate()
Getter for the accepted Date of this
PublicReference |
String |
getAssignedID() |
Calendar |
getCreationDate()
Getter for the creation Date of this
PublicReference |
PersistentIdentifier |
getIdentifierType()
Getter for the
PersistentIdentifier of this
PublicReference. |
String |
getInternalID() |
PublicationStatus |
getPublicationStatus()
Function to check the publication status of this
PublicReference. |
EdalReferenceable |
getReferencable()
Getter for the
EdalReferenceable type of this
PublicReference: |
Calendar |
getRejectedDate()
Getter for the rejected Date of this
PublicReference |
Calendar |
getReleaseDate() |
Calendar |
getRequestedDate()
Getter for the requested Date of this
PublicReference |
Principal |
getRequestedPrincipal()
Get the
Principal of the person, who requested this
PublicReference. |
PrimaryDataEntityVersion |
getVersion()
Getter for the
PrimaryDataEntityVersion of this
PublicReference. |
int |
hashCode() |
boolean |
isPublic()
Getter for the
isPublic field. |
protected void |
setAcceptedDate(Calendar acceptedDate)
Setter for the accepted date of this
PublicReference. |
protected void |
setAssignedID(String assignedID) |
protected void |
setCreationDate(Calendar creationDate)
Setter for the creation date of this
PublicReference. |
protected void |
setInternalID(String internalID) |
void |
setPublic(javax.mail.internet.InternetAddress emailNotificationAddress)
Setter for the
isPublic field and use the default Workgroup. |
void |
setPublic(javax.mail.internet.InternetAddress emailNotificationAddress,
Calendar releaseDate)
Setter for the
isPublic field. |
protected void |
setPublicationStatus(PublicationStatus publicationStatus)
Internal setter for the
PublicationStatus of this
PublicReference. |
protected void |
setRejectedDate(Calendar rejectedDate)
Setter for the rejected date of this
PublicReference. |
protected void |
setReleaseDate(Calendar releaseDate) |
protected void |
setRequestedDate(Calendar requestedDate)
Setter for the requested date of this
PublicReference. |
protected void |
setRequestedPrincipal(Principal requestedPrincipal)
Setter for the
Principal that requested this
PublicReference. |
void |
setVersion(PrimaryDataEntityVersion version)
Setter for the
PrimaryDataEntityVersion of this
PublicReference. |
String |
toString() |
protected PersistentIdentifier identifierType
protected PublicReference()
protected PublicReference(PrimaryDataEntityVersion entityVersion, PersistentIdentifier identifierType) throws EdalException
PublicReference object and use the
class that belongs to the PersistentIdentifier. Before creating a
new PublicReference object the constructor calls the
EdalReferenceable.validateMetaData(PrimaryDataEntityVersion)
method.entityVersion - the current PrimaryDataEntityVersion for this
PublicReference.identifierType - the type of the PublicReference.EdalException - if unable to create new PublicReference.public Calendar getAcceptedDate()
PublicReferencePublicReference was not
yet accepted.public String getAssignedID() throws PublicReferenceException
PublicReferenceExceptionpublic Calendar getCreationDate()
PublicReferencepublic PersistentIdentifier getIdentifierType()
PersistentIdentifier of this
PublicReference.PersistentIdentifier to this PublicReference.public PublicationStatus getPublicationStatus()
PublicReference.PublicReference.public EdalReferenceable getReferencable() throws EdalException
EdalReferenceable type of this
PublicReference:EdalReferenceable object.EdalException - if unable to load the EdalReferenceable class.public Calendar getRejectedDate()
PublicReferencePublicReference was not
yet rejected.public Calendar getRequestedDate()
PublicReferencePublicReference was not
yet requested.public Principal getRequestedPrincipal()
Principal of the person, who requested this
PublicReference.Principal that requested this PublicReference
.public PrimaryDataEntityVersion getVersion()
PrimaryDataEntityVersion of this
PublicReference.PrimaryDataEntityVersion to this
PublicReference.public boolean isPublic()
isPublic field. isPublic field.protected void setAcceptedDate(Calendar acceptedDate)
PublicReference.acceptedDate - the date to set.protected void setAssignedID(String assignedID)
assignedID - the assignedID to setprotected void setCreationDate(Calendar creationDate)
PublicReference.creationDate - the Date to set as creation date.public void setPublic(javax.mail.internet.InternetAddress emailNotificationAddress,
Calendar releaseDate)
throws PublicReferenceException
isPublic field. PublicReferenceException - if unable to request this PublicReference to set
public.public void setPublic(javax.mail.internet.InternetAddress emailNotificationAddress)
throws PublicReferenceException
isPublic field and use the default Workgroup.
Convenience function for external use.PublicReferenceException - if unable to request this PublicReference to set
public.protected void setRejectedDate(Calendar rejectedDate)
PublicReference.rejectedDate - the date to set.protected void setRequestedDate(Calendar requestedDate)
PublicReference.requestedDate - the Date to set as requested Date.protected void setRequestedPrincipal(Principal requestedPrincipal)
Principal that requested this
PublicReference.requestedPrincipal - the Principal to set.public void setVersion(PrimaryDataEntityVersion version)
PrimaryDataEntityVersion of this
PublicReference.version - the PrimaryDataEntityVersion to set.protected void setPublicationStatus(PublicationStatus publicationStatus)
PublicationStatus of this
PublicReference.publicationStatus - the publicationStatus to setpublic String getInternalID()
protected void setInternalID(String internalID)
internalID - the internalID to setpublic Calendar getReleaseDate()
protected void setReleaseDate(Calendar releaseDate)
releaseDate - the releaseDate to setpublic void changeReleaseDate(Calendar releaseDate)
Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.