Interface Comment
public interface Comment
A Comment represents a single comment in a BCF context.
- Since:
- 9.10.8
- 
Method SummaryModifier and Type Method Description booleanaddExternalID(UUID uuid)Add an id this comment has in some external system.static Commentcreate()Creates an empty Comment.static Commentcreate(UUID uuid)Creates an empty Comment with the specified UUID.StringgetAuthor()Returns the author of the comment.LocalDateTimegetCreationDate()Returns the creation date of this comment.Set<UUID>getExternalIds()Returns all the external IDs for this comment.StringgetText()Returns the text of this comment.StringgetUniqueId()Returns the unique ID of the comment.booleanremoveExternalID(UUID uuid)Remove an id this comment has in some external system.voidsetAuthor(String author)Sets the author of this comment.voidsetCreationDate(LocalDateTime creationDate)Set the creation date of this comment.voidsetText(String text)Updates this comment with given text if the author of the comment is current user.
- 
Method Details- 
createCreates an empty Comment.- Returns:
- the new empty Comment
- Since:
- 9.12.0
 
- 
createCreates an empty Comment with the specified UUID.- Parameters:
- uuid- the UUID of the Comment
- Returns:
- the new empty Comment
- Since:
- 9.12.0
 
- 
getUniqueIdString getUniqueId()Returns the unique ID of the comment.- Returns:
- the ID of the comment
- Since:
- 9.12.0
 
- 
getCreationDateLocalDateTime getCreationDate()Returns the creation date of this comment.- Returns:
- the creation date
- Since:
- 9.12.0
 
- 
setCreationDateSet the creation date of this comment.- Parameters:
- creationDate- the date
- Since:
- 9.12.0
 
- 
getTextString getText()Returns the text of this comment.- Returns:
- the text
- Since:
- 9.10.8
 
- 
getAuthorString getAuthor()Returns the author of the comment.- Returns:
- the author
- Since:
- 9.12.0
 
- 
setAuthorSets the author of this comment.- Parameters:
- author- the author
- Since:
- 9.12.0
 
- 
addExternalIDAdd an id this comment has in some external system.- Parameters:
- uuid- the external id
- Returns:
- true when the id didn't exist previously
- Since:
- 9.12.0
 
- 
removeExternalIDRemove an id this comment has in some external system.- Parameters:
- uuid- the external id
- Returns:
- true when the id existed and was removed
- Since:
- 9.12.0
 
- 
getExternalIdsReturns all the external IDs for this comment.- Returns:
- all the external IDs
- Since:
- 9.12.0
 
- 
setTextUpdates this comment with given text if the author of the comment is current user.- Parameters:
- text- the text
- Since:
- 9.12.0
 
 
-