@ParametersAreNonnullByDefault 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, getPageAndBlogPostsVersionsLastEditedByUser, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo
Comment 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)
@Nonnull List<Comment> getPageComments(long pageId, Date since)
pageId
- 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@Nonnull List<Comment> getPageLevelComments(long pageId, Date since)
pageId
- 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)
Copyright © 2003–2017 Atlassian. All rights reserved.