org.nuxeo.ecm.platform.comment.web
Class CommentManagerActionsBean
java.lang.Object
org.nuxeo.ecm.platform.comment.web.AbstractCommentManagerActionsBean
org.nuxeo.ecm.platform.comment.web.CommentManagerActionsBean
- All Implemented Interfaces:
- Serializable, CommentManagerActions
@Name(value="commentManagerActions")
@Scope(value=CONVERSATION)
public class CommentManagerActionsBean
- extends AbstractCommentManagerActionsBean
- implements Serializable
- Author:
- George Lefter
- See Also:
- Serialized Form
Method Summary |
List<ThreadEntry> |
getCommentsAsThread()
Retrieves the list of comment trees associated with a document and
constructs a flat list of comments associated with their depth (to easily
display them with indentation). |
Methods inherited from class org.nuxeo.ecm.platform.comment.web.AbstractCommentManagerActionsBean |
addComment, addComment, addComment, beginComment, cancelComment, cleanContextVariable, createComment, deleteComment, deleteComment, destroy, documentChanged, flattenTree, getActionsForComment, getActionsForComment, getChildren, getComments, getCommentsAsThread, getCommentsAsThreadOnDoc, getCommentStarted, getLastCommentsByDate, getLastCommentsByDate, getNewContent, getPrincipalIsAdmin, getPrincipalName, getSavedReplyCommentId, getShowCreateForm, initComments, initComments, initialize, setNewContent, setSavedReplyCommentId, setShowCreateForm, toggleCreateForm |
CommentManagerActionsBean
public CommentManagerActionsBean()
getCommentsAsThread
@Factory(value="documentThreadedComments",
scope=EVENT)
public List<ThreadEntry> getCommentsAsThread()
throws ClientException
- Retrieves the list of comment trees associated with a document and
constructs a flat list of comments associated with their depth (to easily
display them with indentation).
- Specified by:
getCommentsAsThread
in interface CommentManagerActions
- Returns:
- list of ThreadEntry for currentDocument
- Throws:
ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.