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
FieldsModifier and TypeFieldDescriptionprotected Collection<String> Deprecated.protected StringDeprecated.since 11.1, not used due todocModelusageprotected InstantDeprecated.since 11.1, not used due todocModelusageprotected DocumentModelDocumentModelstoring theCommentmetadata.protected StringDeprecated.since 11.1, not used due todocModelusageprotected StringDeprecated.since 11.1, not used due todocModelusageprotected StringDeprecated.since 11.1, not used due todocModelusageprotected InstantDeprecated.since 11.1, not used due todocModelusageprotected StringDeprecated.since 11.1, not used due todocModelusageprotected StringDeprecated.since 11.1, not used due todocModelusageprotected StringDeprecated.since 11.1, not used due todocModelusage -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommentImpl(DocumentModel docModel) Constructor for the document adapter factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAncestorId(String ancestorId) Deprecated.booleanGets 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.inthashCode()voidSets comment author.voidsetCreationDate(Instant creationDate) Sets comment creation date.voidSets annotation entity.voidsetEntityId(String entityId) Sets annotation entity id.voidDeprecated.voidsetModificationDate(Instant modificationDate) Sets comment modification date.voidSets annotation origin.voidsetParentId(String parentId) Sets parent id.voidSets comment text.toString()
-
Field Details
-
id
Deprecated.since 11.1, not used due todocModelusage -
parentId
Deprecated.since 11.1, not used due todocModelusage -
ancestorIds
Deprecated.since 11.1, not used due todocModelusage -
author
Deprecated.since 11.1, not used due todocModelusage -
text
Deprecated.since 11.1, not used due todocModelusage -
creationDate
Deprecated.since 11.1, not used due todocModelusage -
modificationDate
Deprecated.since 11.1, not used due todocModelusage -
entityId
Deprecated.since 11.1, not used due todocModelusage -
origin
Deprecated.since 11.1, not used due todocModelusage -
entity
Deprecated.since 11.1, not used due todocModelusage -
docModel
DocumentModelstoring theCommentmetadata.- 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:CommentGets comment id. -
setId
Deprecated.Description copied from interface:CommentSets comment id. -
getParentId
Description copied from interface:CommentGets parent id.- Specified by:
getParentIdin interfaceComment- Returns:
- the parent id
-
setParentId
Description copied from interface:CommentSets parent id.- Specified by:
setParentIdin interfaceComment- Parameters:
parentId- the parent id
-
getAncestorIds
Description copied from interface:CommentGets the list of ancestor ids.- Specified by:
getAncestorIdsin interfaceComment- Returns:
- the list of ancestor ids
-
addAncestorId
Deprecated.Description copied from interface:CommentAdds an ancestor id.- Specified by:
addAncestorIdin interfaceComment- Parameters:
ancestorId- the ancestor id
-
getAuthor
Description copied from interface:CommentGets comment author. -
setAuthor
Description copied from interface:CommentSets comment author. -
getText
Description copied from interface:CommentGets comment text. -
setText
Description copied from interface:CommentSets comment text. -
getCreationDate
Description copied from interface:CommentGets comment creation date.- Specified by:
getCreationDatein interfaceComment- Returns:
- the creation date
-
setCreationDate
Description copied from interface:CommentSets comment creation date.- Specified by:
setCreationDatein interfaceComment- Parameters:
creationDate- the creation date
-
getModificationDate
Description copied from interface:CommentSets comment modification date.- Specified by:
getModificationDatein interfaceComment- Returns:
- the modification date
-
setModificationDate
Description copied from interface:CommentSets comment modification date.- Specified by:
setModificationDatein interfaceComment- Parameters:
modificationDate- the modification date
-
getEntityId
Description copied from interface:ExternalEntityGets annotation entity id, generated by the external service.- Specified by:
getEntityIdin interfaceExternalEntity- Returns:
- the entity id
-
setEntityId
Description copied from interface:ExternalEntitySets annotation entity id.- Specified by:
setEntityIdin interfaceExternalEntity- Parameters:
entityId- the entity id
-
getOrigin
Description copied from interface:ExternalEntityGets annotation origin.- Specified by:
getOriginin interfaceExternalEntity- Returns:
- the origin
-
setOrigin
Description copied from interface:ExternalEntitySets annotation origin.- Specified by:
setOriginin interfaceExternalEntity- Parameters:
origin- the origin
-
getEntity
Description copied from interface:ExternalEntityGets annotation entity. This represents the annotation model as the rendition server describes it.- Specified by:
getEntityin interfaceExternalEntity- Returns:
- the entity
-
setEntity
Description copied from interface:ExternalEntitySets annotation entity.- Specified by:
setEntityin interfaceExternalEntity- Parameters:
entity- the entity
-
getDocument
Description copied from interface:CommentGets the document model backing this pojo.- Specified by:
getDocumentin interfaceComment- Returns:
- the document model backing this pojo
-
equals
-
hashCode
public int hashCode() -
toString
-
docModelusage