Class CommentImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.comment.api.CommentImpl
-
- All Implemented Interfaces:
Comment,ExternalEntity
- Direct Known Subclasses:
AnnotationImpl
public class CommentImpl extends Object implements Comment, ExternalEntity
- Since:
- 10.3
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>ancestorIdsDeprecated.since 11.1, not used due todocModelusageprotected StringauthorDeprecated.since 11.1, not used due todocModelusageprotected InstantcreationDateDeprecated.since 11.1, not used due todocModelusageprotected DocumentModeldocModelDocumentModelstoring theCommentmetadata.protected StringentityDeprecated.since 11.1, not used due todocModelusageprotected StringentityIdDeprecated.since 11.1, not used due todocModelusageprotected StringidDeprecated.since 11.1, not used due todocModelusageprotected InstantmodificationDateDeprecated.since 11.1, not used due todocModelusageprotected StringoriginDeprecated.since 11.1, not used due todocModelusageprotected StringparentIdDeprecated.since 11.1, not used due todocModelusageprotected StringtextDeprecated.since 11.1, not used due todocModelusage
-
Constructor Summary
Constructors Modifier Constructor Description CommentImpl()protectedCommentImpl(DocumentModel docModel)Constructor for the document adapter factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAncestorId(String ancestorId)Deprecated.booleanequals(Object o)Collection<String>getAncestorIds()Gets the list of ancestor ids.StringgetAuthor()Gets comment author.InstantgetCreationDate()Gets comment creation date.DocumentModelgetDocument()Gets the document model backing this pojo.StringgetEntity()Gets annotation entity.StringgetEntityId()Gets annotation entity id, generated by the external service.StringgetId()Gets comment id.InstantgetModificationDate()Sets comment modification date.StringgetOrigin()Gets annotation origin.StringgetParentId()Gets parent id.StringgetText()Gets comment text.inthashCode()voidsetAuthor(String author)Sets comment author.voidsetCreationDate(Instant creationDate)Sets comment creation date.voidsetEntity(String entity)Sets annotation entity.voidsetEntityId(String entityId)Sets annotation entity id.voidsetId(String id)Deprecated.voidsetModificationDate(Instant modificationDate)Sets comment modification date.voidsetOrigin(String origin)Sets annotation origin.voidsetParentId(String parentId)Sets parent id.voidsetText(String text)Sets comment text.StringtoString()
-
-
-
Field Detail
-
id
@Deprecated(since="11.1") protected String id
Deprecated.since 11.1, not used due todocModelusage
-
parentId
@Deprecated(since="11.1") protected String parentId
Deprecated.since 11.1, not used due todocModelusage
-
ancestorIds
@Deprecated(since="11.1") protected Collection<String> ancestorIds
Deprecated.since 11.1, not used due todocModelusage
-
author
@Deprecated(since="11.1") protected String author
Deprecated.since 11.1, not used due todocModelusage
-
text
@Deprecated(since="11.1") protected String text
Deprecated.since 11.1, not used due todocModelusage
-
creationDate
@Deprecated(since="11.1") protected Instant creationDate
Deprecated.since 11.1, not used due todocModelusage
-
modificationDate
@Deprecated(since="11.1") protected Instant modificationDate
Deprecated.since 11.1, not used due todocModelusage
-
entityId
@Deprecated(since="11.1") protected String entityId
Deprecated.since 11.1, not used due todocModelusage
-
origin
@Deprecated(since="11.1") protected String origin
Deprecated.since 11.1, not used due todocModelusage
-
entity
@Deprecated(since="11.1") protected String entity
Deprecated.since 11.1, not used due todocModelusage
-
docModel
protected DocumentModel docModel
DocumentModelstoring theCommentmetadata.- Since:
- 11.1
-
-
Constructor Detail
-
CommentImpl
public CommentImpl()
- Since:
- 11.1
-
CommentImpl
protected CommentImpl(DocumentModel docModel)
Constructor for the document adapter factory.- Since:
- 11.1
-
-
Method Detail
-
setId
@Deprecated(since="11.1") public void setId(String id)
Deprecated.Description copied from interface:CommentSets comment id.
-
getParentId
public String getParentId()
Description copied from interface:CommentGets parent id.- Specified by:
getParentIdin interfaceComment- Returns:
- the parent id
-
setParentId
public void setParentId(String parentId)
Description copied from interface:CommentSets parent id.- Specified by:
setParentIdin interfaceComment- Parameters:
parentId- the parent id
-
getAncestorIds
public Collection<String> getAncestorIds()
Description copied from interface:CommentGets the list of ancestor ids.- Specified by:
getAncestorIdsin interfaceComment- Returns:
- the list of ancestor ids
-
addAncestorId
@Deprecated(since="11.1") public void addAncestorId(String ancestorId)
Deprecated.Description copied from interface:CommentAdds an ancestor id.- Specified by:
addAncestorIdin interfaceComment- Parameters:
ancestorId- the ancestor id
-
setAuthor
public void setAuthor(String author)
Description copied from interface:CommentSets comment author.
-
setText
public void setText(String text)
Description copied from interface:CommentSets comment text.
-
getCreationDate
public Instant getCreationDate()
Description copied from interface:CommentGets comment creation date.- Specified by:
getCreationDatein interfaceComment- Returns:
- the creation date
-
setCreationDate
public void setCreationDate(Instant creationDate)
Description copied from interface:CommentSets comment creation date.- Specified by:
setCreationDatein interfaceComment- Parameters:
creationDate- the creation date
-
getModificationDate
public Instant getModificationDate()
Description copied from interface:CommentSets comment modification date.- Specified by:
getModificationDatein interfaceComment- Returns:
- the modification date
-
setModificationDate
public void setModificationDate(Instant modificationDate)
Description copied from interface:CommentSets comment modification date.- Specified by:
setModificationDatein interfaceComment- Parameters:
modificationDate- the modification date
-
getEntityId
public String getEntityId()
Description copied from interface:ExternalEntityGets annotation entity id, generated by the external service.- Specified by:
getEntityIdin interfaceExternalEntity- Returns:
- the entity id
-
setEntityId
public void setEntityId(String entityId)
Description copied from interface:ExternalEntitySets annotation entity id.- Specified by:
setEntityIdin interfaceExternalEntity- Parameters:
entityId- the entity id
-
getOrigin
public String getOrigin()
Description copied from interface:ExternalEntityGets annotation origin.- Specified by:
getOriginin interfaceExternalEntity- Returns:
- the origin
-
setOrigin
public void setOrigin(String origin)
Description copied from interface:ExternalEntitySets annotation origin.- Specified by:
setOriginin interfaceExternalEntity- Parameters:
origin- the origin
-
getEntity
public String 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
public void setEntity(String entity)
Description copied from interface:ExternalEntitySets annotation entity.- Specified by:
setEntityin interfaceExternalEntity- Parameters:
entity- the entity
-
getDocument
public DocumentModel getDocument()
Description copied from interface:CommentGets the document model backing this pojo.- Specified by:
getDocumentin interfaceComment- Returns:
- the document model backing this pojo
-
-