Class PublicationNoteReference
- java.lang.Object
-
- org.silverpeas.core.persistence.EntityReference<PublicationDetail>
-
- org.silverpeas.core.contribution.publication.datereminder.PublicationNoteReference
-
public class PublicationNoteReference extends EntityReference<PublicationDetail>
An entity, which references a publication in Silverpeas, such publication being represented by aPublicationDetail
object.- Author:
- Cécile Bonin
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.persistence.EntityReference
UNKNOWN_TYPE
-
-
Constructor Summary
Constructors Constructor Description PublicationNoteReference(String pubId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicationNoteReference
fromPublicationDetail(PublicationDetail publicationDetail)
Constructs a PublicationNoteReference from an publication.PublicationDetail
getEntity()
Gets the instance of the entity targeted by this reference.
-
-
-
Constructor Detail
-
PublicationNoteReference
public PublicationNoteReference(String pubId)
-
-
Method Detail
-
fromPublicationDetail
public static PublicationNoteReference fromPublicationDetail(PublicationDetail publicationDetail)
Constructs a PublicationNoteReference from an publication.- Parameters:
publicationDetail
- the publication.- Returns:
- PublicationNoteReference
-
getEntity
public PublicationDetail getEntity()
Description copied from class:EntityReference
Gets the instance of the entity targeted by this reference.- Specified by:
getEntity
in classEntityReference<PublicationDetail>
- Returns:
- the entity identified by this reference.
-
-