com.atlassian.confluence.pages
Interface CommentManager

All Superinterfaces:
ContentEntityManager
All Known Subinterfaces:
CommentManagerInternal
All Known Implementing Classes:
DefaultCommentManager

public interface CommentManager
extends ContentEntityManager

Manager for page comments.


Field Summary
 
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager
ITERATE_ALL
 
Method Summary
 Comment addCommentToObject(ContentEntityObject ceo, Comment parent, java.lang.String content)
           
 Comment addCommentToObject(ContentEntityObject ceo, Comment parent, java.lang.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, java.lang.String content)
          Deprecated. 
 java.util.Map<com.atlassian.bonnie.Searchable,java.lang.Integer> countComments(java.util.Collection<? extends com.atlassian.bonnie.Searchable> searchables)
           
 int countComments(com.atlassian.bonnie.Searchable searchable)
           
 Comment getComment(long id)
           
 java.util.List<Comment> getPageComments(long pageId, java.util.Date since)
          The service get all page comments (page level comments and inline comments)
 java.util.List<Comment> getPageComments(long pageId, java.util.Date since, java.lang.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.
 java.util.List<Comment> getPageLevelComments(long pageId, java.util.Date since)
          The service get all page level comments
 java.util.Iterator getRecentlyUpdatedComments(Space space, int maxResults)
           
 void removeCommentFromObject(long id)
           
 void removeCommentFromPage(long id)
          Deprecated. 
 void updateCommentContent(Comment comment, java.lang.String content)
           
 
Methods inherited from interface com.atlassian.confluence.core.ContentEntityManager
getById, getNextVersion, getOtherVersion, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, setEventManager, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo
 

Method Detail

getComment

Comment getComment(long id)

addCommentToPage

@Deprecated
Comment addCommentToPage(AbstractPage page,
                                    Comment parent,
                                    java.lang.String content)
Deprecated. 


addCommentToObject

Comment addCommentToObject(ContentEntityObject ceo,
                           Comment parent,
                           java.lang.String content)

addCommentToObject

Comment addCommentToObject(ContentEntityObject ceo,
                           Comment parent,
                           java.lang.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

void updateCommentContent(Comment comment,
                          java.lang.String content)

removeCommentFromPage

@Deprecated
void removeCommentFromPage(long id)
Deprecated. 


removeCommentFromObject

void removeCommentFromObject(long id)

getRecentlyUpdatedComments

java.util.Iterator getRecentlyUpdatedComments(Space space,
                                              int maxResults)

getPageComments

java.util.List<Comment> getPageComments(long pageId,
                                        java.util.Date since)
The service get all page comments (page level comments and inline comments)

Parameters:
pageId - page id of comment
since - comment time
Returns:
all comment

getPageComments

java.util.List<Comment> getPageComments(long pageId,
                                        java.util.Date since,
                                        java.lang.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.

Parameters:
pageId - page id of comment
since - comment time
ignoreUsername - username excepted
Returns:
all comment

getPageLevelComments

java.util.List<Comment> getPageLevelComments(long pageId,
                                             java.util.Date since)
The service get all page level comments

Parameters:
pageId - page id of comment
since - comment time
Returns:
page level comments
Since:
5.6

countComments

java.util.Map<com.atlassian.bonnie.Searchable,java.lang.Integer> countComments(java.util.Collection<? extends com.atlassian.bonnie.Searchable> searchables)

countComments

int countComments(com.atlassian.bonnie.Searchable searchable)


Copyright © 2003-2014 Atlassian. All Rights Reserved.