Class CommentImpl
java.lang.Object
org.nuxeo.ecm.platform.comment.api.CommentImpl
- All Implemented Interfaces:
Comment
,ExternalEntity
- Direct Known Subclasses:
AnnotationImpl
- Since:
- 10.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected Collection<String>
Deprecated.protected String
Deprecated.since 11.1, not used due todocModel
usageprotected Instant
Deprecated.since 11.1, not used due todocModel
usageprotected DocumentModel
DocumentModel
storing theComment
metadata.protected String
Deprecated.since 11.1, not used due todocModel
usageprotected String
Deprecated.since 11.1, not used due todocModel
usageprotected String
Deprecated.since 11.1, not used due todocModel
usageprotected Instant
Deprecated.since 11.1, not used due todocModel
usageprotected String
Deprecated.since 11.1, not used due todocModel
usageprotected String
Deprecated.since 11.1, not used due todocModel
usageprotected String
Deprecated.since 11.1, not used due todocModel
usage -
Constructor Summary
ModifierConstructorDescriptionprotected
CommentImpl
(DocumentModel docModel) Constructor for the document adapter factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAncestorId
(String ancestorId) Deprecated.boolean
Gets the list of ancestor ids.Gets comment author.Gets comment creation date.Gets the document model backing this pojo.Gets annotation entity.Gets annotation entity id, generated by the external service.getId()
Gets comment id.Sets comment modification date.Gets annotation origin.Gets parent id.getText()
Gets comment text.int
hashCode()
void
Sets comment author.void
setCreationDate
(Instant creationDate) Sets comment creation date.void
Sets annotation entity.void
setEntityId
(String entityId) Sets annotation entity id.void
Deprecated.void
setModificationDate
(Instant modificationDate) Sets comment modification date.void
Sets annotation origin.void
setParentId
(String parentId) Sets parent id.void
Sets comment text.toString()
-
Field Details
-
id
Deprecated.since 11.1, not used due todocModel
usage -
parentId
Deprecated.since 11.1, not used due todocModel
usage -
ancestorIds
Deprecated.since 11.1, not used due todocModel
usage -
author
Deprecated.since 11.1, not used due todocModel
usage -
text
Deprecated.since 11.1, not used due todocModel
usage -
creationDate
Deprecated.since 11.1, not used due todocModel
usage -
modificationDate
Deprecated.since 11.1, not used due todocModel
usage -
entityId
Deprecated.since 11.1, not used due todocModel
usage -
origin
Deprecated.since 11.1, not used due todocModel
usage -
entity
Deprecated.since 11.1, not used due todocModel
usage -
docModel
DocumentModel
storing theComment
metadata.- Since:
- 11.1
-
-
Constructor Details
-
CommentImpl
public CommentImpl()- Since:
- 11.1
-
CommentImpl
Constructor for the document adapter factory.- Since:
- 11.1
-
-
Method Details
-
getId
Description copied from interface:Comment
Gets comment id. -
setId
Deprecated.Description copied from interface:Comment
Sets comment id. -
getParentId
Description copied from interface:Comment
Gets parent id.- Specified by:
getParentId
in interfaceComment
- Returns:
- the parent id
-
setParentId
Description copied from interface:Comment
Sets parent id.- Specified by:
setParentId
in interfaceComment
- Parameters:
parentId
- the parent id
-
getAncestorIds
Description copied from interface:Comment
Gets the list of ancestor ids.- Specified by:
getAncestorIds
in interfaceComment
- Returns:
- the list of ancestor ids
-
addAncestorId
Deprecated.Description copied from interface:Comment
Adds an ancestor id.- Specified by:
addAncestorId
in interfaceComment
- Parameters:
ancestorId
- the ancestor id
-
getAuthor
Description copied from interface:Comment
Gets comment author. -
setAuthor
Description copied from interface:Comment
Sets comment author. -
getText
Description copied from interface:Comment
Gets comment text. -
setText
Description copied from interface:Comment
Sets comment text. -
getCreationDate
Description copied from interface:Comment
Gets comment creation date.- Specified by:
getCreationDate
in interfaceComment
- Returns:
- the creation date
-
setCreationDate
Description copied from interface:Comment
Sets comment creation date.- Specified by:
setCreationDate
in interfaceComment
- Parameters:
creationDate
- the creation date
-
getModificationDate
Description copied from interface:Comment
Sets comment modification date.- Specified by:
getModificationDate
in interfaceComment
- Returns:
- the modification date
-
setModificationDate
Description copied from interface:Comment
Sets comment modification date.- Specified by:
setModificationDate
in interfaceComment
- Parameters:
modificationDate
- the modification date
-
getEntityId
Description copied from interface:ExternalEntity
Gets annotation entity id, generated by the external service.- Specified by:
getEntityId
in interfaceExternalEntity
- Returns:
- the entity id
-
setEntityId
Description copied from interface:ExternalEntity
Sets annotation entity id.- Specified by:
setEntityId
in interfaceExternalEntity
- Parameters:
entityId
- the entity id
-
getOrigin
Description copied from interface:ExternalEntity
Gets annotation origin.- Specified by:
getOrigin
in interfaceExternalEntity
- Returns:
- the origin
-
setOrigin
Description copied from interface:ExternalEntity
Sets annotation origin.- Specified by:
setOrigin
in interfaceExternalEntity
- Parameters:
origin
- the origin
-
getEntity
Description copied from interface:ExternalEntity
Gets annotation entity. This represents the annotation model as the rendition server describes it.- Specified by:
getEntity
in interfaceExternalEntity
- Returns:
- the entity
-
setEntity
Description copied from interface:ExternalEntity
Sets annotation entity.- Specified by:
setEntity
in interfaceExternalEntity
- Parameters:
entity
- the entity
-
getDocument
Description copied from interface:Comment
Gets the document model backing this pojo.- Specified by:
getDocument
in interfaceComment
- Returns:
- the document model backing this pojo
-
equals
-
hashCode
public int hashCode() -
toString
-
docModel
usage