|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.core.DefaultContentEntityManager com.atlassian.confluence.pages.DefaultCommentManager
public class DefaultCommentManager
Manager for page comments.
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.core.DefaultContentEntityManager |
---|
attachmentManager, contentEntityObjectDao, eventManager, hibernateSessionManager, indexer, labelManager, linkManager |
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager |
---|
ITERATE_ALL |
Constructor Summary | |
---|---|
DefaultCommentManager()
|
Method Summary | |
---|---|
Comment |
addCommentToObject(ContentEntityObject ceo,
Comment parent,
java.lang.String content)
|
Comment |
addCommentToPage(AbstractPage page,
Comment parent,
java.lang.String content)
|
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)
|
PageResponse<Comment> |
getChildren(Comment comment,
LimitedRequest pageRequest,
Depth depth)
Returns the children of a comment, limited to the pagination requested. |
Comment |
getComment(long id)
|
java.util.List<Comment> |
getPageComments(long pageId,
java.util.Date since)
|
java.util.List<Comment> |
getPageComments(long pageId,
java.util.Date since,
java.lang.String ignoreUsername)
|
PageResponse<Comment> |
getPageComments(long pageId,
LimitedRequest pageRequest,
Depth depth)
Returns the children of a Page or Blogpost, limited to the pagination requested. |
java.util.Iterator |
getRecentlyUpdatedComments(Space space,
int maxResults)
|
protected void |
publishCreateEvent(ContentEntityObject obj)
This method publishes *CreateEvents s. |
protected void |
publishCreateEvent(ContentEntityObject obj,
SaveContext saveContext)
|
protected void |
publishRemoveEvent(ContentEntityObject obj)
This method publishes *RemoveEvent s. |
protected void |
publishUpdateEvent(ContentEntityObject obj,
ContentEntityObject origObj,
SaveContext saveContext)
This method publishes *UpdateEvent s. |
void |
removeCommentFromObject(long id)
|
void |
removeCommentFromPage(long id)
|
void |
setCommentDao(CommentDao commentDao)
|
void |
updateCommentContent(Comment comment,
java.lang.String content)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCommentManager()
Method Detail |
---|
public void setCommentDao(CommentDao commentDao)
public Comment getComment(long id)
getComment
in interface CommentManager
public Comment addCommentToPage(AbstractPage page, Comment parent, java.lang.String content)
addCommentToPage
in interface CommentManager
public Comment addCommentToObject(ContentEntityObject ceo, Comment parent, java.lang.String content)
addCommentToObject
in interface CommentManager
public void updateCommentContent(Comment comment, java.lang.String content)
updateCommentContent
in interface CommentManager
public void removeCommentFromPage(long id)
removeCommentFromPage
in interface CommentManager
public void removeCommentFromObject(long id)
removeCommentFromObject
in interface CommentManager
public java.util.Iterator getRecentlyUpdatedComments(Space space, int maxResults)
getRecentlyUpdatedComments
in interface CommentManager
public java.util.List<Comment> getPageComments(long pageId, java.util.Date since)
getPageComments
in interface CommentManager
public java.util.List<Comment> getPageComments(long pageId, java.util.Date since, java.lang.String ignoreUsername)
getPageComments
in interface CommentManager
public PageResponse<Comment> getPageComments(long pageId, LimitedRequest pageRequest, Depth depth)
CommentManagerInternal
getPageComments
in interface CommentManagerInternal
pageId
- the id of the page or blogpost to find children forpageRequest
- the pagination requesteddepth
- the depth to return children to
public java.util.Map<com.atlassian.bonnie.Searchable,java.lang.Integer> countComments(java.util.Collection<? extends com.atlassian.bonnie.Searchable> searchables)
countComments
in interface CommentManager
public int countComments(com.atlassian.bonnie.Searchable searchable)
countComments
in interface CommentManager
public PageResponse<Comment> getChildren(Comment comment, LimitedRequest pageRequest, Depth depth)
CommentManagerInternal
getChildren
in interface CommentManagerInternal
comment
- the comment to find children forpageRequest
- the pagination requesteddepth
- the depth to return children to
protected void publishCreateEvent(ContentEntityObject obj)
DefaultContentEntityManager
*CreateEvents
s.
Specific content entity object manager that need to publish those events should override this method.
publishCreateEvent
in class DefaultContentEntityManager
obj
- the created content entity objectprotected void publishCreateEvent(ContentEntityObject obj, SaveContext saveContext)
publishCreateEvent
in class DefaultContentEntityManager
protected void publishRemoveEvent(ContentEntityObject obj)
DefaultContentEntityManager
*RemoveEvent
s.
Specific content entity object manager that need to publish those events should override this method.
publishRemoveEvent
in class DefaultContentEntityManager
obj
- the removed content entity objectprotected void publishUpdateEvent(ContentEntityObject obj, ContentEntityObject origObj, SaveContext saveContext)
DefaultContentEntityManager
*UpdateEvent
s.
Specific content entity object manager that need to publish those events should override this method.
publishUpdateEvent
in class DefaultContentEntityManager
obj
- the updated content entity objectorigObj
- the old version of the content entity object, for history purposesaveContext
- the associated SaveContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |