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 SummaryConstructors Modifier Constructor Description protectedPublicReferenceImplementation()Default constructor forPublicReferenceImplementationis necessary for PojoInstantiator of HIBERNATE.protectedPublicReferenceImplementation(PublicReference pub)Constructor for aPublicReferenceImplementationfrom the givenPublicReferenceobject.
 - 
Method SummaryModifier 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.PublicReferenceequals, hashCode, setPublic, setPublic, setRequestedPrincipal, setVersion
 
- 
 
- 
- 
- 
Constructor Detail- 
PublicReferenceImplementationprotected PublicReferenceImplementation() Default constructor forPublicReferenceImplementationis necessary for PojoInstantiator of HIBERNATE.
 - 
PublicReferenceImplementationprotected 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 initial- PublicReferenceobject.
 
 
- 
 - 
Method Detail- 
getAcceptedDatepublic java.util.Calendar getAcceptedDate() Description copied from class:PublicReferenceGetter for the accepted Date of thisPublicReference- Overrides:
- getAcceptedDatein class- PublicReference
- Returns:
- the accepted date or null if the PublicReferencewas not yet accepted.
 
 - 
getAssignedIDpublic java.lang.String getAssignedID() throws PublicReferenceException- Overrides:
- getAssignedIDin class- PublicReference
- Returns:
- the assignedID
- Throws:
- PublicReferenceException- if no ID set
 
 - 
getCreationDatepublic java.util.Calendar getCreationDate() Description copied from class:PublicReferenceGetter for the creation Date of thisPublicReference- Overrides:
- getCreationDatein class- PublicReference
- Returns:
- the creation date.
 
 - 
getIdpublic int getId() Getter for theidfield of thisPublicReferenceImplementationto persist with HIBERNATE.- Returns:
- id the id of this PublicReferenceImplementation.
 
 - 
getIdentifierTypepublic PersistentIdentifier getIdentifierType() Getter for thePersistentIdentifierof thisPublicReference.- Overrides:
- getIdentifierTypein class- PublicReference
- Returns:
- the PersistentIdentifierto thisPublicReference.
 
 - 
getPrivateRequestedPrincipalprotected PrincipalImplementation getPrivateRequestedPrincipal() 
 - 
getPublicationStatuspublic PublicationStatus getPublicationStatus() Description copied from class:PublicReferenceFunction to check the publication status of thisPublicReference.- Overrides:
- getPublicationStatusin class- PublicReference
- Returns:
- the current status of the publication process of this
         PublicReference.
 
 - 
getReferencablepublic Referenceable getReferencable() throws EdalException Description copied from class:PublicReferenceGetter for theReferenceabletype of thisPublicReference:- Overrides:
- getReferencablein class- PublicReference
- Returns:
- the corresponding Referenceableobject.
- Throws:
- EdalException- if unable to load the- Referenceableclass.
 
 - 
getReleaseDatepublic java.util.Calendar getReleaseDate() - Overrides:
- getReleaseDatein class- PublicReference
- Returns:
- the releaseDate
 
 - 
getRejectedDatepublic java.util.Calendar getRejectedDate() Description copied from class:PublicReferenceGetter for the rejected Date of thisPublicReference- Overrides:
- getRejectedDatein class- PublicReference
- Returns:
- the rejected date or null if the PublicReferencewas not yet rejected.
 
 - 
getRequestedDatepublic java.util.Calendar getRequestedDate() Description copied from class:PublicReferenceGetter for the requested Date of thisPublicReference- Overrides:
- getRequestedDatein class- PublicReference
- Returns:
- the requested date or null if the PublicReferencewas not yet requested.
 
 - 
getRequestedPrincipalpublic java.security.Principal getRequestedPrincipal() Description copied from class:PublicReferenceGet thePrincipalof the person, who requested thisPublicReference.- Overrides:
- getRequestedPrincipalin class- PublicReference
- Returns:
- the Principalthat requested thisPublicReference.
 
 - 
getVersionpublic PrimaryDataEntityVersionImplementation getVersion() Getter for thePrimaryDataEntityVersionof thisPublicReference.- Overrides:
- getVersionin class- PublicReference
- Returns:
- the PrimaryDataEntityVersionto thisPublicReference.
 
 - 
isPublicpublic boolean isPublic() Getter for theisPublicfield. Convenience function for external use.- Overrides:
- isPublicin class- PublicReference
- Returns:
- the isPublicfield.
 
 - 
setAcceptedDateprotected void setAcceptedDate(java.util.Calendar acceptedDate) Description copied from class:PublicReferenceSetter for the accepted date of thisPublicReference.- Overrides:
- setAcceptedDatein class- PublicReference
- Parameters:
- acceptedDate- the date to set.
 
 - 
setAssignedIDprotected void setAssignedID(java.lang.String assignedID) - Overrides:
- setAssignedIDin class- PublicReference
- Parameters:
- assignedID- the assignedID to set
 
 - 
setCreationDateprotected void setCreationDate(java.util.Calendar creationDate) Description copied from class:PublicReferenceSetter for the creation date of thisPublicReference.- Overrides:
- setCreationDatein class- PublicReference
- Parameters:
- creationDate- the- Dateto set as creation date.
 
 - 
setIdpublic void setId(int id) Setter for theidfield of thisPublicReferenceImplementationto persist with HIBERNATE.- Parameters:
- id- the id to set.
 
 - 
setIdentifierTypepublic void setIdentifierType(PersistentIdentifier identifierType) Setter for thePersistentIdentifierof thisPublicReferenceImplementation.- Parameters:
- identifierType- the- PersistentIdentifierto set.
 
 - 
setPrivateRequestedPrincipalprotected void setPrivateRequestedPrincipal(PrincipalImplementation requestedPrincipal) 
 - 
setPublicprotected void setPublic(boolean isPublic) Setter for theisPublicfield of thisPublicReferenceImplementation.- Parameters:
- isPublic- the- Booleanto set.
 
 - 
setPublicationStatusprotected void setPublicationStatus(PublicationStatus publicationStatus) Description copied from class:PublicReferenceInternal setter for thePublicationStatusof this PublicReference.- Overrides:
- setPublicationStatusin class- PublicReference
- Parameters:
- publicationStatus- the publicationStatus to set
 
 - 
setRejectedDateprotected void setRejectedDate(java.util.Calendar rejectedDate) Description copied from class:PublicReferenceSetter for the rejected date of thisPublicReference.- Overrides:
- setRejectedDatein class- PublicReference
- Parameters:
- rejectedDate- the date to set.
 
 - 
setRequestedDateprotected void setRequestedDate(java.util.Calendar requestedDate) Description copied from class:PublicReferenceSetter for the requested date of thisPublicReference.- Overrides:
- setRequestedDatein class- PublicReference
- Parameters:
- requestedDate- the- Dateto set as requested Date.
 
 - 
setReleaseDateprotected void setReleaseDate(java.util.Calendar releaseDate) - Overrides:
- setReleaseDatein class- PublicReference
- Parameters:
- releaseDate- the releaseDate to set
 
 - 
changeReleaseDatepublic void changeReleaseDate(java.util.Calendar releaseDate) - Overrides:
- changeReleaseDatein class- PublicReference
 
 - 
setVersionprotected void setVersion(PrimaryDataEntityVersionImplementation version) Setter for thePrimaryDataEntityVersionImplementationof thisPublicReferenceImplementation.- Parameters:
- version- the- PrimaryDataEntityVersionImplementationobject to set.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- PublicReference
 
 - 
getReviewStatusSetpublic java.util.Set<ReviewStatusImplementation> getReviewStatusSet() - Returns:
- the reviewStatusSet
 
 - 
setReviewStatusSetpublic void setReviewStatusSet(java.util.Set<ReviewStatusImplementation> reviewStatusSet) - Parameters:
- reviewStatusSet- the reviewStatusSet to set
 
 - 
getLandingPagepublic java.lang.String getLandingPage() - Returns:
- the landingPage
 
 - 
setLandingPagepublic void setLandingPage(java.lang.String landingPage) - Parameters:
- landingPage- the landingPage to set
 
 - 
getInternalIDpublic java.lang.String getInternalID() - Overrides:
- getInternalIDin class- PublicReference
- Returns:
- the internalID
 
 - 
setInternalIDprotected void setInternalID(java.lang.String internalID) - Overrides:
- setInternalIDin class- PublicReference
- Parameters:
- internalID- the internalID to set
 
 
- 
 
-