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 thePublicReference
class with HIBERNATE.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PublicReferenceImplementation()
Default constructor forPublicReferenceImplementation
is necessary for PojoInstantiator of HIBERNATE.protected
PublicReferenceImplementation(PublicReference pub)
Constructor for aPublicReferenceImplementation
from the givenPublicReference
object.
-
Method Summary
Modifier and Type Method Description void
changeReleaseDate(java.util.Calendar releaseDate)
java.util.Calendar
getAcceptedDate()
Getter for the accepted Date of thisPublicReference
java.lang.String
getAssignedID()
java.util.Calendar
getCreationDate()
Getter for the creation Date of thisPublicReference
int
getId()
Getter for theid
field of thisPublicReferenceImplementation
to persist with HIBERNATE.PersistentIdentifier
getIdentifierType()
Getter for thePersistentIdentifier
of thisPublicReference
.java.lang.String
getInternalID()
java.lang.String
getLandingPage()
protected PrincipalImplementation
getPrivateRequestedPrincipal()
PublicationStatus
getPublicationStatus()
Function to check the publication status of thisPublicReference
.Referenceable
getReferencable()
Getter for theReferenceable
type of thisPublicReference
:java.util.Calendar
getRejectedDate()
Getter for the rejected Date of thisPublicReference
java.util.Calendar
getReleaseDate()
java.util.Calendar
getRequestedDate()
Getter for the requested Date of thisPublicReference
java.security.Principal
getRequestedPrincipal()
Get thePrincipal
of the person, who requested thisPublicReference
.java.util.Set<ReviewStatusImplementation>
getReviewStatusSet()
PrimaryDataEntityVersionImplementation
getVersion()
Getter for thePrimaryDataEntityVersion
of thisPublicReference
.boolean
isPublic()
Getter for theisPublic
field.protected void
setAcceptedDate(java.util.Calendar acceptedDate)
Setter for the accepted date of thisPublicReference
.protected void
setAssignedID(java.lang.String assignedID)
protected void
setCreationDate(java.util.Calendar creationDate)
Setter for the creation date of thisPublicReference
.void
setId(int id)
Setter for theid
field of thisPublicReferenceImplementation
to persist with HIBERNATE.void
setIdentifierType(PersistentIdentifier identifierType)
Setter for thePersistentIdentifier
of thisPublicReferenceImplementation
.protected void
setInternalID(java.lang.String internalID)
void
setLandingPage(java.lang.String landingPage)
protected void
setPrivateRequestedPrincipal(PrincipalImplementation requestedPrincipal)
protected void
setPublic(boolean isPublic)
Setter for theisPublic
field of thisPublicReferenceImplementation
.protected void
setPublicationStatus(PublicationStatus publicationStatus)
Internal setter for thePublicationStatus
of this PublicReference.protected void
setRejectedDate(java.util.Calendar rejectedDate)
Setter for the rejected date of thisPublicReference
.protected void
setReleaseDate(java.util.Calendar releaseDate)
protected void
setRequestedDate(java.util.Calendar requestedDate)
Setter for the requested date of thisPublicReference
.void
setReviewStatusSet(java.util.Set<ReviewStatusImplementation> reviewStatusSet)
protected void
setVersion(PrimaryDataEntityVersionImplementation version)
Setter for thePrimaryDataEntityVersionImplementation
of thisPublicReferenceImplementation
.java.lang.String
toString()
-
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 forPublicReferenceImplementation
is necessary for PojoInstantiator of HIBERNATE.
-
PublicReferenceImplementation
protected PublicReferenceImplementation(PublicReference pub)
Constructor for aPublicReferenceImplementation
from the givenPublicReference
object. The consideringPrimaryDataEntityVersionImplementation
will be set in thePrimaryDataDirectoryImplementation.storeVersion(de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersion)
function.- Parameters:
pub
- the initialPublicReference
object.
-
-
Method Detail
-
getAcceptedDate
public java.util.Calendar getAcceptedDate()
Description copied from class:PublicReference
Getter for the accepted Date of thisPublicReference
- Overrides:
getAcceptedDate
in classPublicReference
- Returns:
- the accepted date or null if the
PublicReference
was not yet accepted.
-
getAssignedID
public java.lang.String getAssignedID() throws PublicReferenceException
- Overrides:
getAssignedID
in classPublicReference
- Returns:
- the assignedID
- Throws:
PublicReferenceException
- if no ID set
-
getCreationDate
public java.util.Calendar getCreationDate()
Description copied from class:PublicReference
Getter for the creation Date of thisPublicReference
- Overrides:
getCreationDate
in classPublicReference
- Returns:
- the creation date.
-
getId
public int getId()
Getter for theid
field of thisPublicReferenceImplementation
to persist with HIBERNATE.- Returns:
- id the id of this
PublicReferenceImplementation
.
-
getIdentifierType
public PersistentIdentifier getIdentifierType()
Getter for thePersistentIdentifier
of thisPublicReference
.- Overrides:
getIdentifierType
in classPublicReference
- Returns:
- the
PersistentIdentifier
to thisPublicReference
.
-
getPrivateRequestedPrincipal
protected PrincipalImplementation getPrivateRequestedPrincipal()
-
getPublicationStatus
public PublicationStatus getPublicationStatus()
Description copied from class:PublicReference
Function to check the publication status of thisPublicReference
.- Overrides:
getPublicationStatus
in classPublicReference
- Returns:
- the current status of the publication process of this
PublicReference
.
-
getReferencable
public Referenceable getReferencable() throws EdalException
Description copied from class:PublicReference
Getter for theReferenceable
type of thisPublicReference
:- Overrides:
getReferencable
in classPublicReference
- Returns:
- the corresponding
Referenceable
object. - Throws:
EdalException
- if unable to load theReferenceable
class.
-
getReleaseDate
public java.util.Calendar getReleaseDate()
- Overrides:
getReleaseDate
in classPublicReference
- Returns:
- the releaseDate
-
getRejectedDate
public java.util.Calendar getRejectedDate()
Description copied from class:PublicReference
Getter for the rejected Date of thisPublicReference
- Overrides:
getRejectedDate
in classPublicReference
- Returns:
- the rejected date or null if the
PublicReference
was not yet rejected.
-
getRequestedDate
public java.util.Calendar getRequestedDate()
Description copied from class:PublicReference
Getter for the requested Date of thisPublicReference
- Overrides:
getRequestedDate
in classPublicReference
- Returns:
- the requested date or null if the
PublicReference
was not yet requested.
-
getRequestedPrincipal
public java.security.Principal getRequestedPrincipal()
Description copied from class:PublicReference
Get thePrincipal
of the person, who requested thisPublicReference
.- Overrides:
getRequestedPrincipal
in classPublicReference
- Returns:
- the
Principal
that requested thisPublicReference
.
-
getVersion
public PrimaryDataEntityVersionImplementation getVersion()
Getter for thePrimaryDataEntityVersion
of thisPublicReference
.- Overrides:
getVersion
in classPublicReference
- Returns:
- the
PrimaryDataEntityVersion
to thisPublicReference
.
-
isPublic
public boolean isPublic()
Getter for theisPublic
field. Convenience function for external use.- Overrides:
isPublic
in classPublicReference
- Returns:
- the
isPublic
field.
-
setAcceptedDate
protected void setAcceptedDate(java.util.Calendar acceptedDate)
Description copied from class:PublicReference
Setter for the accepted date of thisPublicReference
.- Overrides:
setAcceptedDate
in classPublicReference
- Parameters:
acceptedDate
- the date to set.
-
setAssignedID
protected void setAssignedID(java.lang.String assignedID)
- Overrides:
setAssignedID
in classPublicReference
- Parameters:
assignedID
- the assignedID to set
-
setCreationDate
protected void setCreationDate(java.util.Calendar creationDate)
Description copied from class:PublicReference
Setter for the creation date of thisPublicReference
.- Overrides:
setCreationDate
in classPublicReference
- Parameters:
creationDate
- theDate
to set as creation date.
-
setId
public void setId(int id)
Setter for theid
field of thisPublicReferenceImplementation
to persist with HIBERNATE.- Parameters:
id
- the id to set.
-
setIdentifierType
public void setIdentifierType(PersistentIdentifier identifierType)
Setter for thePersistentIdentifier
of thisPublicReferenceImplementation
.- Parameters:
identifierType
- thePersistentIdentifier
to set.
-
setPrivateRequestedPrincipal
protected void setPrivateRequestedPrincipal(PrincipalImplementation requestedPrincipal)
-
setPublic
protected void setPublic(boolean isPublic)
Setter for theisPublic
field of thisPublicReferenceImplementation
.- Parameters:
isPublic
- theBoolean
to set.
-
setPublicationStatus
protected void setPublicationStatus(PublicationStatus publicationStatus)
Description copied from class:PublicReference
Internal setter for thePublicationStatus
of this PublicReference.- Overrides:
setPublicationStatus
in classPublicReference
- Parameters:
publicationStatus
- the publicationStatus to set
-
setRejectedDate
protected void setRejectedDate(java.util.Calendar rejectedDate)
Description copied from class:PublicReference
Setter for the rejected date of thisPublicReference
.- Overrides:
setRejectedDate
in classPublicReference
- Parameters:
rejectedDate
- the date to set.
-
setRequestedDate
protected void setRequestedDate(java.util.Calendar requestedDate)
Description copied from class:PublicReference
Setter for the requested date of thisPublicReference
.- Overrides:
setRequestedDate
in classPublicReference
- Parameters:
requestedDate
- theDate
to set as requested Date.
-
setReleaseDate
protected void setReleaseDate(java.util.Calendar releaseDate)
- Overrides:
setReleaseDate
in classPublicReference
- Parameters:
releaseDate
- the releaseDate to set
-
changeReleaseDate
public void changeReleaseDate(java.util.Calendar releaseDate)
- Overrides:
changeReleaseDate
in classPublicReference
-
setVersion
protected void setVersion(PrimaryDataEntityVersionImplementation version)
Setter for thePrimaryDataEntityVersionImplementation
of thisPublicReferenceImplementation
.- Parameters:
version
- thePrimaryDataEntityVersionImplementation
object to set.
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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:
getInternalID
in classPublicReference
- Returns:
- the internalID
-
setInternalID
protected void setInternalID(java.lang.String internalID)
- Overrides:
setInternalID
in classPublicReference
- Parameters:
internalID
- the internalID to set
-
-