@ParametersAreNonnullByDefault public interface CommentManager extends ContentEntityManager
ITERATE_ALL| Modifier and Type | Method and Description | 
|---|---|
@NonNull Comment | 
addCommentToObject(ContentEntityObject ceo,
                  @Nullable Comment parent,
                  String content)  | 
@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. 
 | 
@NonNull Comment | 
addCommentToPage(AbstractPage page,
                @Nullable Comment parent,
                String content)
Deprecated.  
 | 
int | 
countAllCommentVersions()
Count the total number of comments of all types, including previous versions 
 | 
@NonNull Map<com.atlassian.bonnie.Searchable,Integer> | 
countComments(Collection<? extends com.atlassian.bonnie.Searchable> searchables)  | 
int | 
countComments(com.atlassian.bonnie.Searchable searchable)  | 
@NonNull Map<Long,Integer> | 
countUnresolvedComments(Collection<Long> containerIds)
Count unresolved comments of comment containers. 
 | 
Comment | 
getComment(long id)  | 
@NonNull List<Comment> | 
getPageComments(long pageId,
               Date since)
Deprecated. 
 
since 7.3.0, use  
ContentService.find(Expansion...)
 in plugins or CommentManagerInternal in core where applicable | 
@NonNull 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. 
 | 
@NonNull List<Comment> | 
getPageLevelComments(long pageId,
                    Date since)
Deprecated. 
 
since 7.3.0, use  
ContentService.find(Expansion...)
 in plugins or CommentManagerInternal in core where applicable | 
@NonNull Iterator | 
getRecentlyUpdatedComments(Space space,
                          int maxResults)  | 
void | 
removeCommentFromObject(long id)  | 
void | 
removeCommentFromPage(long id)
Deprecated.  
 | 
void | 
updateCommentContent(Comment comment,
                    String content)  | 
getById, getContributionStatusByUser, getNextVersion, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersionComment getComment(long id)
@Deprecated @NonNull Comment addCommentToPage(AbstractPage page, @Nullable Comment parent, String content)
@NonNull Comment addCommentToObject(ContentEntityObject ceo, @Nullable Comment parent, String content)
@NonNull Comment addCommentToObject(ContentEntityObject ceo, @Nullable Comment parent, String content, NewCommentDeduplicator commentDeduplicator)
@Deprecated void removeCommentFromPage(long id)
void removeCommentFromObject(long id)
@NonNull Iterator getRecentlyUpdatedComments(Space space, int maxResults)
@Deprecated @NonNull List<Comment> getPageComments(long pageId, Date since)
ContentService.find(Expansion...)
 in plugins or CommentManagerInternal in core where applicablepageId - page id of commentsince - comment time@NonNull List<Comment> getPageComments(long pageId, Date since, String ignoreUsername)
pageId - page id of commentsince - comment timeignoreUsername - username excepted@Deprecated @NonNull List<Comment> getPageLevelComments(long pageId, Date since)
ContentService.find(Expansion...)
 in plugins or CommentManagerInternal in core where applicablepageId - page id of commentsince - comment time@NonNull Map<com.atlassian.bonnie.Searchable,Integer> countComments(Collection<? extends com.atlassian.bonnie.Searchable> searchables)
int countComments(com.atlassian.bonnie.Searchable searchable)
int countAllCommentVersions()
@NonNull Map<Long,Integer> countUnresolvedComments(Collection<Long> containerIds)
containerIds - the list of comment containers idsCopyright © 2003–2021 Atlassian. All rights reserved.