Package com.atlassian.confluence.pages
Interface CommentManager
- All Superinterfaces:
 ContentEntityManager
- All Known Subinterfaces:
 CommentManagerInternal
- All Known Implementing Classes:
 DefaultCommentManager
Manager for page comments.
- 
Field Summary
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager
ITERATE_ALL - 
Method Summary
Modifier and TypeMethodDescription@NonNull CommentaddCommentToObject(ContentEntityObject ceo, @Nullable Comment parent, String content) @NonNull CommentaddCommentToObject(ContentEntityObject ceo, @Nullable 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.@NonNull CommentaddCommentToPage(AbstractPage page, @Nullable Comment parent, String content) Deprecated.intCount the total number of comments of all types, including previous versionsintcountComments(Searchable searchable) @NonNull Map<Searchable,Integer> countComments(Collection<? extends Searchable> searchables) countUnresolvedComments(Collection<Long> containerIds) Count unresolved comments of comment containers.getComment(long id) getPageComments(long pageId, Date since) Deprecated.getPageComments(long pageId, Date since, ConfluenceUser ignoreUser) The service get all page comments (page level comments and inline comments) from a particular date except for comments by the given user.getPageLevelComments(long pageId, Date since) Deprecated.since 7.3.0, useContentService.find(Expansion...)in plugins orCommentManagerInternalin core where applicablegetRecentlyUpdatedComments(Space space, int maxResults) voidremoveCommentFromObject(long id) voidremoveCommentFromPage(long id) Deprecated.voidupdateCommentContent(Comment comment, String content) Methods inherited from interface com.atlassian.confluence.core.ContentEntityManager
getById, getContributionStatusByUser, getNextVersion, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion 
- 
Method Details
- 
getComment
 - 
addCommentToPage
@Deprecated @NonNull Comment addCommentToPage(AbstractPage page, @Nullable Comment parent, String content) Deprecated. - 
addCommentToObject
@NonNull Comment addCommentToObject(ContentEntityObject ceo, @Nullable Comment parent, String content)  - 
addCommentToObject
@NonNull Comment addCommentToObject(ContentEntityObject ceo, @Nullable 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.- Since:
 - 5.6
 
 - 
updateCommentContent
 - 
removeCommentFromPage
Deprecated. - 
removeCommentFromObject
void removeCommentFromObject(long id)  - 
getRecentlyUpdatedComments
 - 
getPageComments
Deprecated.since 7.3.0, useContentService.find(Expansion...)in plugins orCommentManagerInternalin core where applicableThe service get all page comments (page level comments and inline comments)- Parameters:
 pageId- page id of commentsince- comment time- Returns:
 - all comment
 
 - 
getPageComments
The service get all page comments (page level comments and inline comments) from a particular date except for comments by the given user.- Parameters:
 pageId- page id of commentsince- comment timeignoreUser- user excepted- Returns:
 - all comment
 
 - 
getPageLevelComments
Deprecated.since 7.3.0, useContentService.find(Expansion...)in plugins orCommentManagerInternalin core where applicableThe service get all page level comments- Parameters:
 pageId- page id of commentsince- comment time- Returns:
 - page level comments
 - Since:
 - 5.6
 
 - 
countComments
 - 
countComments
 - 
countAllCommentVersions
int countAllCommentVersions()Count the total number of comments of all types, including previous versions- Returns:
 - the total number of comments
 - Since:
 - 6.11.0
 
 - 
countUnresolvedComments
Count unresolved comments of comment containers.- Parameters:
 containerIds- the list of comment containers ids- Returns:
 - The map of container id and its unresolved comment count
 - Since:
 - 5.7
 
 
 - 
 
ContentService.find(Expansion...)in plugins orCommentManagerInternalin core where applicable