public class PublicReference
extends java.lang.Object
implements java.io.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(java.util.Calendar releaseDate) |
boolean |
equals(java.lang.Object obj) |
java.util.Calendar |
getAcceptedDate()
Getter for the accepted Date of this
PublicReference |
java.lang.String |
getAssignedID() |
java.util.Calendar |
getCreationDate()
Getter for the creation Date of this
PublicReference |
PersistentIdentifier |
getIdentifierType()
Getter for the
PersistentIdentifier of this
PublicReference. |
java.lang.String |
getInternalID() |
PublicationStatus |
getPublicationStatus()
Function to check the publication status of this
PublicReference. |
Referenceable |
getReferencable()
Getter for the
Referenceable type of this
PublicReference: |
java.util.Calendar |
getRejectedDate()
Getter for the rejected Date of this
PublicReference |
java.util.Calendar |
getReleaseDate() |
java.util.Calendar |
getRequestedDate()
Getter for the requested Date of this
PublicReference |
java.security.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(java.util.Calendar acceptedDate)
Setter for the accepted date of this
PublicReference. |
protected void |
setAssignedID(java.lang.String assignedID) |
protected void |
setCreationDate(java.util.Calendar creationDate)
Setter for the creation date of this
PublicReference. |
protected void |
setInternalID(java.lang.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,
java.util.Calendar releaseDate)
Setter for the
isPublic field. |
protected void |
setPublicationStatus(PublicationStatus publicationStatus)
Internal setter for the
PublicationStatus of this
PublicReference. |
protected void |
setRejectedDate(java.util.Calendar rejectedDate)
Setter for the rejected date of this
PublicReference. |
protected void |
setReleaseDate(java.util.Calendar releaseDate) |
protected void |
setRequestedDate(java.util.Calendar requestedDate)
Setter for the requested date of this
PublicReference. |
protected void |
setRequestedPrincipal(java.security.Principal requestedPrincipal)
Setter for the
Principal that requested this
PublicReference. |
void |
setVersion(PrimaryDataEntityVersion version)
Setter for the
PrimaryDataEntityVersion of this
PublicReference. |
java.lang.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
Referenceable.validateMetaData(PrimaryDataEntityVersion)
method.entityVersion - the current PrimaryDataEntityVersion for this
PublicReference.identifierType - the type of the PublicReference.EdalException - if unable to create new PublicReference.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Calendar getAcceptedDate()
PublicReferencePublicReference was not
yet accepted.public java.lang.String getAssignedID()
throws PublicReferenceException
PublicReferenceException - if no ID setpublic java.util.Calendar getCreationDate()
PublicReferencepublic PersistentIdentifier getIdentifierType()
PersistentIdentifier of this
PublicReference.PersistentIdentifier to this PublicReference.public PublicationStatus getPublicationStatus()
PublicReference.PublicReference.public Referenceable getReferencable() throws EdalException
Referenceable type of this
PublicReference:Referenceable object.EdalException - if unable to load the Referenceable class.public java.util.Calendar getRejectedDate()
PublicReferencePublicReference was not
yet rejected.public java.util.Calendar getRequestedDate()
PublicReferencePublicReference was not
yet requested.public java.security.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 int hashCode()
hashCode in class java.lang.Objectpublic boolean isPublic()
isPublic field. Convenience function for
external use.isPublic field.protected void setAcceptedDate(java.util.Calendar acceptedDate)
PublicReference.acceptedDate - the date to set.protected void setAssignedID(java.lang.String assignedID)
assignedID - the assignedID to setprotected void setCreationDate(java.util.Calendar creationDate)
PublicReference.creationDate - the Date to set as creation date.public void setPublic(javax.mail.internet.InternetAddress emailNotificationAddress,
java.util.Calendar releaseDate)
throws PublicReferenceException
isPublic field. Convenience function for
external use.emailNotificationAddress - the address for email notificationsreleaseDate - the release datePublicReferenceException - 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.emailNotificationAddress - the address for email notificationsPublicReferenceException - if unable to request this PublicReference to set
public.protected void setRejectedDate(java.util.Calendar rejectedDate)
PublicReference.rejectedDate - the date to set.protected void setRequestedDate(java.util.Calendar requestedDate)
PublicReference.requestedDate - the Date to set as requested Date.protected void setRequestedPrincipal(java.security.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.public java.lang.String toString()
toString in class java.lang.Objectprotected void setPublicationStatus(PublicationStatus publicationStatus)
PublicationStatus of this
PublicReference.publicationStatus - the publicationStatus to setpublic java.lang.String getInternalID()
protected void setInternalID(java.lang.String internalID)
internalID - the internalID to setpublic java.util.Calendar getReleaseDate()
protected void setReleaseDate(java.util.Calendar releaseDate)
releaseDate - the releaseDate to setpublic void changeReleaseDate(java.util.Calendar releaseDate)