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()
Comment
getParentId
in interface Comment
public void setParentId(String parentId)
Comment
setParentId
in interface Comment
parentId
- the parent idpublic Collection<String> getAncestorIds()
Comment
getAncestorIds
in interface Comment
public void addAncestorId(String ancestorId)
Comment
addAncestorId
in interface Comment
ancestorId
- the ancestor idpublic void setAuthor(String author)
Comment
public void setText(String text)
Comment
public Instant getCreationDate()
Comment
getCreationDate
in interface Comment
public void setCreationDate(Instant creationDate)
Comment
setCreationDate
in interface Comment
creationDate
- the creation datepublic Instant getModificationDate()
Comment
getModificationDate
in interface Comment
public void setModificationDate(Instant modificationDate)
Comment
setModificationDate
in interface Comment
modificationDate
- the modification datepublic String getEntityId()
ExternalEntity
getEntityId
in interface ExternalEntity
public void setEntityId(String entityId)
ExternalEntity
setEntityId
in interface ExternalEntity
entityId
- the entity idpublic String getOrigin()
ExternalEntity
getOrigin
in interface ExternalEntity
public void setOrigin(String origin)
ExternalEntity
setOrigin
in interface ExternalEntity
origin
- the originpublic String getEntity()
ExternalEntity
getEntity
in interface ExternalEntity
public void setEntity(String entity)
ExternalEntity
setEntity
in interface ExternalEntity
entity
- the entityCopyright © 2019 Nuxeo. All rights reserved.