Class PublicReferenceImplementation
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.PublicReferenceImplementation
-
- All Implemented Interfaces:
java.io.Serializable
@Entity public final class PublicReferenceImplementation extends PublicReference implements java.io.Serializable
Class for the persistence of thePublicReferenceclass with HIBERNATE.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPublicReferenceImplementation()Default constructor forPublicReferenceImplementationis necessary for PojoInstantiator of HIBERNATE.protectedPublicReferenceImplementation(PublicReference pub)Constructor for aPublicReferenceImplementationfrom the givenPublicReferenceobject.
-
Method Summary
Modifier and Type Method Description voidchangeReleaseDate(java.util.Calendar releaseDate)java.util.CalendargetAcceptedDate()Getter for the accepted Date of thisPublicReferencejava.lang.StringgetAssignedID()java.util.CalendargetCreationDate()Getter for the creation Date of thisPublicReferenceintgetId()Getter for theidfield of thisPublicReferenceImplementationto persist with HIBERNATE.PersistentIdentifiergetIdentifierType()Getter for thePersistentIdentifierof thisPublicReference.java.lang.StringgetInternalID()java.lang.StringgetLandingPage()protected PrincipalImplementationgetPrivateRequestedPrincipal()PublicationStatusgetPublicationStatus()Function to check the publication status of thisPublicReference.ReferenceablegetReferencable()Getter for theReferenceabletype of thisPublicReference:java.util.CalendargetRejectedDate()Getter for the rejected Date of thisPublicReferencejava.util.CalendargetReleaseDate()java.util.CalendargetRequestedDate()Getter for the requested Date of thisPublicReferencejava.security.PrincipalgetRequestedPrincipal()Get thePrincipalof the person, who requested thisPublicReference.java.util.Set<ReviewStatusImplementation>getReviewStatusSet()PrimaryDataEntityVersionImplementationgetVersion()Getter for thePrimaryDataEntityVersionof thisPublicReference.booleanisPublic()Getter for theisPublicfield.protected voidsetAcceptedDate(java.util.Calendar acceptedDate)Setter for the accepted date of thisPublicReference.protected voidsetAssignedID(java.lang.String assignedID)protected voidsetCreationDate(java.util.Calendar creationDate)Setter for the creation date of thisPublicReference.voidsetId(int id)Setter for theidfield of thisPublicReferenceImplementationto persist with HIBERNATE.voidsetIdentifierType(PersistentIdentifier identifierType)Setter for thePersistentIdentifierof thisPublicReferenceImplementation.protected voidsetInternalID(java.lang.String internalID)voidsetLandingPage(java.lang.String landingPage)protected voidsetPrivateRequestedPrincipal(PrincipalImplementation requestedPrincipal)protected voidsetPublic(boolean isPublic)Setter for theisPublicfield of thisPublicReferenceImplementation.protected voidsetPublicationStatus(PublicationStatus publicationStatus)Internal setter for thePublicationStatusof this PublicReference.protected voidsetRejectedDate(java.util.Calendar rejectedDate)Setter for the rejected date of thisPublicReference.protected voidsetReleaseDate(java.util.Calendar releaseDate)protected voidsetRequestedDate(java.util.Calendar requestedDate)Setter for the requested date of thisPublicReference.voidsetReviewStatusSet(java.util.Set<ReviewStatusImplementation> reviewStatusSet)protected voidsetVersion(PrimaryDataEntityVersionImplementation version)Setter for thePrimaryDataEntityVersionImplementationof thisPublicReferenceImplementation.java.lang.StringtoString()-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.file.PublicReference
equals, hashCode, setPublic, setPublic, setRequestedPrincipal, setVersion
-
-
-
-
Constructor Detail
-
PublicReferenceImplementation
protected PublicReferenceImplementation()
Default constructor forPublicReferenceImplementationis necessary for PojoInstantiator of HIBERNATE.
-
PublicReferenceImplementation
protected PublicReferenceImplementation(PublicReference pub)
Constructor for aPublicReferenceImplementationfrom the givenPublicReferenceobject. The consideringPrimaryDataEntityVersionImplementationwill be set in thePrimaryDataDirectoryImplementation.storeVersion(de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersion)function.- Parameters:
pub- the initialPublicReferenceobject.
-
-
Method Detail
-
getAcceptedDate
public java.util.Calendar getAcceptedDate()
Description copied from class:PublicReferenceGetter for the accepted Date of thisPublicReference- Overrides:
getAcceptedDatein classPublicReference- Returns:
- the accepted date or null if the
PublicReferencewas not yet accepted.
-
getAssignedID
public java.lang.String getAssignedID() throws PublicReferenceException- Overrides:
getAssignedIDin classPublicReference- Returns:
- the assignedID
- Throws:
PublicReferenceException- if no ID set
-
getCreationDate
public java.util.Calendar getCreationDate()
Description copied from class:PublicReferenceGetter for the creation Date of thisPublicReference- Overrides:
getCreationDatein classPublicReference- Returns:
- the creation date.
-
getId
public int getId()
Getter for theidfield of thisPublicReferenceImplementationto persist with HIBERNATE.- Returns:
- id the id of this
PublicReferenceImplementation.
-
getIdentifierType
public PersistentIdentifier getIdentifierType()
Getter for thePersistentIdentifierof thisPublicReference.- Overrides:
getIdentifierTypein classPublicReference- Returns:
- the
PersistentIdentifierto thisPublicReference.
-
getPrivateRequestedPrincipal
protected PrincipalImplementation getPrivateRequestedPrincipal()
-
getPublicationStatus
public PublicationStatus getPublicationStatus()
Description copied from class:PublicReferenceFunction to check the publication status of thisPublicReference.- Overrides:
getPublicationStatusin classPublicReference- Returns:
- the current status of the publication process of this
PublicReference.
-
getReferencable
public Referenceable getReferencable() throws EdalException
Description copied from class:PublicReferenceGetter for theReferenceabletype of thisPublicReference:- Overrides:
getReferencablein classPublicReference- Returns:
- the corresponding
Referenceableobject. - Throws:
EdalException- if unable to load theReferenceableclass.
-
getReleaseDate
public java.util.Calendar getReleaseDate()
- Overrides:
getReleaseDatein classPublicReference- Returns:
- the releaseDate
-
getRejectedDate
public java.util.Calendar getRejectedDate()
Description copied from class:PublicReferenceGetter for the rejected Date of thisPublicReference- Overrides:
getRejectedDatein classPublicReference- Returns:
- the rejected date or null if the
PublicReferencewas not yet rejected.
-
getRequestedDate
public java.util.Calendar getRequestedDate()
Description copied from class:PublicReferenceGetter for the requested Date of thisPublicReference- Overrides:
getRequestedDatein classPublicReference- Returns:
- the requested date or null if the
PublicReferencewas not yet requested.
-
getRequestedPrincipal
public java.security.Principal getRequestedPrincipal()
Description copied from class:PublicReferenceGet thePrincipalof the person, who requested thisPublicReference.- Overrides:
getRequestedPrincipalin classPublicReference- Returns:
- the
Principalthat requested thisPublicReference.
-
getVersion
public PrimaryDataEntityVersionImplementation getVersion()
Getter for thePrimaryDataEntityVersionof thisPublicReference.- Overrides:
getVersionin classPublicReference- Returns:
- the
PrimaryDataEntityVersionto thisPublicReference.
-
isPublic
public boolean isPublic()
Getter for theisPublicfield. Convenience function for external use.- Overrides:
isPublicin classPublicReference- Returns:
- the
isPublicfield.
-
setAcceptedDate
protected void setAcceptedDate(java.util.Calendar acceptedDate)
Description copied from class:PublicReferenceSetter for the accepted date of thisPublicReference.- Overrides:
setAcceptedDatein classPublicReference- Parameters:
acceptedDate- the date to set.
-
setAssignedID
protected void setAssignedID(java.lang.String assignedID)
- Overrides:
setAssignedIDin classPublicReference- Parameters:
assignedID- the assignedID to set
-
setCreationDate
protected void setCreationDate(java.util.Calendar creationDate)
Description copied from class:PublicReferenceSetter for the creation date of thisPublicReference.- Overrides:
setCreationDatein classPublicReference- Parameters:
creationDate- theDateto set as creation date.
-
setId
public void setId(int id)
Setter for theidfield of thisPublicReferenceImplementationto persist with HIBERNATE.- Parameters:
id- the id to set.
-
setIdentifierType
public void setIdentifierType(PersistentIdentifier identifierType)
Setter for thePersistentIdentifierof thisPublicReferenceImplementation.- Parameters:
identifierType- thePersistentIdentifierto set.
-
setPrivateRequestedPrincipal
protected void setPrivateRequestedPrincipal(PrincipalImplementation requestedPrincipal)
-
setPublic
protected void setPublic(boolean isPublic)
Setter for theisPublicfield of thisPublicReferenceImplementation.- Parameters:
isPublic- theBooleanto set.
-
setPublicationStatus
protected void setPublicationStatus(PublicationStatus publicationStatus)
Description copied from class:PublicReferenceInternal setter for thePublicationStatusof this PublicReference.- Overrides:
setPublicationStatusin classPublicReference- Parameters:
publicationStatus- the publicationStatus to set
-
setRejectedDate
protected void setRejectedDate(java.util.Calendar rejectedDate)
Description copied from class:PublicReferenceSetter for the rejected date of thisPublicReference.- Overrides:
setRejectedDatein classPublicReference- Parameters:
rejectedDate- the date to set.
-
setRequestedDate
protected void setRequestedDate(java.util.Calendar requestedDate)
Description copied from class:PublicReferenceSetter for the requested date of thisPublicReference.- Overrides:
setRequestedDatein classPublicReference- Parameters:
requestedDate- theDateto set as requested Date.
-
setReleaseDate
protected void setReleaseDate(java.util.Calendar releaseDate)
- Overrides:
setReleaseDatein classPublicReference- Parameters:
releaseDate- the releaseDate to set
-
changeReleaseDate
public void changeReleaseDate(java.util.Calendar releaseDate)
- Overrides:
changeReleaseDatein classPublicReference
-
setVersion
protected void setVersion(PrimaryDataEntityVersionImplementation version)
Setter for thePrimaryDataEntityVersionImplementationof thisPublicReferenceImplementation.- Parameters:
version- thePrimaryDataEntityVersionImplementationobject to set.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classPublicReference
-
getReviewStatusSet
public java.util.Set<ReviewStatusImplementation> getReviewStatusSet()
- Returns:
- the reviewStatusSet
-
setReviewStatusSet
public void setReviewStatusSet(java.util.Set<ReviewStatusImplementation> reviewStatusSet)
- Parameters:
reviewStatusSet- the reviewStatusSet to set
-
getLandingPage
public java.lang.String getLandingPage()
- Returns:
- the landingPage
-
setLandingPage
public void setLandingPage(java.lang.String landingPage)
- Parameters:
landingPage- the landingPage to set
-
getInternalID
public java.lang.String getInternalID()
- Overrides:
getInternalIDin classPublicReference- Returns:
- the internalID
-
setInternalID
protected void setInternalID(java.lang.String internalID)
- Overrides:
setInternalIDin classPublicReference- Parameters:
internalID- the internalID to set
-
-