public class CommentImpl extends Object implements Comment, ExternalEntity
| Modifier and Type | Field and Description |
|---|---|
protected Collection<String> |
ancestorIds |
protected String |
author |
protected Instant |
creationDate |
protected String |
entity |
protected String |
entityId |
protected String |
id |
protected Instant |
modificationDate |
protected String |
origin |
protected String |
parentId |
protected String |
text |
| Constructor and Description |
|---|
CommentImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAncestorId(String ancestorId)
Adds an ancestor id.
|
boolean |
equals(Object o) |
Collection<String> |
getAncestorIds()
Gets the list of ancestor ids.
|
String |
getAuthor()
Gets comment author.
|
Instant |
getCreationDate()
Gets comment creation date.
|
String |
getEntity()
Gets annotation entity.
|
String |
getEntityId()
Gets annotation entity id, generated by the external service.
|
String |
getId()
Gets comment id.
|
Instant |
getModificationDate()
Sets comment modification date.
|
String |
getOrigin()
Gets annotation origin.
|
String |
getParentId()
Gets parent id.
|
String |
getText()
Gets comment text.
|
int |
hashCode() |
void |
setAuthor(String author)
Sets comment author.
|
void |
setCreationDate(Instant creationDate)
Sets comment creation date.
|
void |
setEntity(String entity)
Sets annotation entity.
|
void |
setEntityId(String entityId)
Sets annotation entity id.
|
void |
setId(String id)
Sets comment id.
|
void |
setModificationDate(Instant modificationDate)
Sets comment modification date.
|
void |
setOrigin(String origin)
Sets annotation origin.
|
void |
setParentId(String parentId)
Sets parent id.
|
void |
setText(String text)
Sets comment text.
|
protected Collection<String> ancestorIds
protected Instant creationDate
protected Instant modificationDate
public CommentImpl()
public String getParentId()
CommentgetParentId in interface Commentpublic void setParentId(String parentId)
CommentsetParentId in interface CommentparentId - the parent idpublic Collection<String> getAncestorIds()
CommentgetAncestorIds in interface Commentpublic void addAncestorId(String ancestorId)
CommentaddAncestorId in interface CommentancestorId - the ancestor idpublic void setAuthor(String author)
Commentpublic void setText(String text)
Commentpublic Instant getCreationDate()
CommentgetCreationDate in interface Commentpublic void setCreationDate(Instant creationDate)
CommentsetCreationDate in interface CommentcreationDate - the creation datepublic Instant getModificationDate()
CommentgetModificationDate in interface Commentpublic void setModificationDate(Instant modificationDate)
CommentsetModificationDate in interface CommentmodificationDate - the modification datepublic String getEntityId()
ExternalEntitygetEntityId in interface ExternalEntitypublic void setEntityId(String entityId)
ExternalEntitysetEntityId in interface ExternalEntityentityId - the entity idpublic String getOrigin()
ExternalEntitygetOrigin in interface ExternalEntitypublic void setOrigin(String origin)
ExternalEntitysetOrigin in interface ExternalEntityorigin - the originpublic String getEntity()
ExternalEntitygetEntity in interface ExternalEntitypublic void setEntity(String entity)
ExternalEntitysetEntity in interface ExternalEntityentity - the entityCopyright © 2019 Nuxeo. All rights reserved.