public interface CommentManager extends ContentEntityManager
ITERATE_ALL| Modifier and Type | Method and Description |
|---|---|
Comment |
addCommentToObject(ContentEntityObject ceo,
Comment parent,
String content) |
Comment |
addCommentToObject(ContentEntityObject ceo,
Comment parent,
String content,
NewCommentDeduplicator commentDeduplicator)
Add a new comment if the given deduplicator determines that it's not a duplicate, or just return the existing duplicate otherwise.
|
Comment |
addCommentToPage(AbstractPage page,
Comment parent,
String content)
Deprecated.
|
Map<com.atlassian.bonnie.Searchable,Integer> |
countComments(Collection<? extends com.atlassian.bonnie.Searchable> searchables) |
int |
countComments(com.atlassian.bonnie.Searchable searchable) |
Map<Long,Integer> |
countUnresolvedComments(Collection<Long> containerIds)
Count unresolved comments of comment containers.
|
Comment |
getComment(long id) |
List<Comment> |
getPageComments(long pageId,
Date since)
The service get all page comments (page level comments and inline comments)
|
List<Comment> |
getPageComments(long pageId,
Date since,
String ignoreUsername)
The service get all page comments (page level comments and inline comments) from a particular date except for comments by the given username.
|
List<Comment> |
getPageLevelComments(long pageId,
Date since)
The service get all page level comments
|
Iterator |
getRecentlyUpdatedComments(Space space,
int maxResults) |
void |
removeCommentFromObject(long id) |
void |
removeCommentFromPage(long id)
Deprecated.
|
void |
updateCommentContent(Comment comment,
String content) |
getById, getNextVersion, getOtherVersion, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, setEventManager, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinToComment getComment(long id)
@Deprecated Comment addCommentToPage(AbstractPage page, Comment parent, String content)
Comment addCommentToObject(ContentEntityObject ceo, Comment parent, String content)
Comment addCommentToObject(ContentEntityObject ceo, Comment parent, String content, NewCommentDeduplicator commentDeduplicator)
@Deprecated void removeCommentFromPage(long id)
void removeCommentFromObject(long id)
List<Comment> getPageComments(long pageId, Date since)
pageId - page id of commentsince - comment timeList<Comment> getPageComments(long pageId, Date since, String ignoreUsername)
pageId - page id of commentsince - comment timeignoreUsername - username exceptedList<Comment> getPageLevelComments(long pageId, Date since)
pageId - page id of commentsince - comment timeMap<com.atlassian.bonnie.Searchable,Integer> countComments(Collection<? extends com.atlassian.bonnie.Searchable> searchables)
int countComments(com.atlassian.bonnie.Searchable searchable)
Map<Long,Integer> countUnresolvedComments(Collection<Long> containerIds)
containerIds - the list of comment containers idsCopyright © 2003–2016 Atlassian. All rights reserved.