Class Comment
java.lang.Object
io.goobi.viewer.model.annotation.PersistentAnnotation
io.goobi.viewer.model.annotation.comments.Comment
- All Implemented Interfaces:
Serializable
,Comparable<Comment>
@Entity
public class Comment
extends PersistentAnnotation
implements Comparable<Comment>, Serializable
- Author:
- florian
- See Also:
-
Constructor Summary
ConstructorDescriptionComment()
Comment
(PersistentAnnotation source) Comment
(String pi, int page, User owner, String text, String accessCondition, PublicationStatus publicationStatus) -
Method Summary
Methods inherited from class io.goobi.viewer.model.annotation.PersistentAnnotation
deleteExportedTextFiles, equals, getAccessCondition, getBody, getContentString, getCreator, getCreatorId, getCreatorIfPresent, getDateCreated, getDateModified, getDisplayDate, getGenerator, getGeneratorId, getId, getMotivation, getPublicationStatus, getReviewer, getReviewerId, getTarget, getTargetLink, getTargetPageOrder, getTargetPI, hashCode, mayEdit, setAccessCondition, setBody, setCreator, setCreatorId, setDateCreated, setDateModified, setGenerator, setGeneratorId, setId, setMotivation, setPublicationStatus, setReviewer, setReviewerId, setTarget, setTargetPageOrder, setTargetPI, toString
-
Constructor Details
-
Comment
public Comment() -
Comment
- Parameters:
source
-
-
Comment
public Comment(String pi, int page, User owner, String text, String accessCondition, PublicationStatus publicationStatus) - Parameters:
pi
-page
-owner
-text
-accessCondition
-publicationStatus
-
-
-
Method Details
-
isTargetPiRecordIndexed
- Returns:
- true if record with
targetPI
exists in index; false otherwise - Throws:
IndexUnreachableException
PresentationException
-
getDisplayText
-
getText
-
setText
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Comment>
- Parameters:
o
-- Returns:
-