Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.comment.web
Class CommentManagerActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.comment.web.AbstractCommentManagerActionsBean
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.comment.web.AbstractCommentManagerActionsBean
AbstractCommentManagerActionsBean.FollowTransitionUnrestricted
 
Field Summary
 
Fields inherited from interface org.nuxeo.ecm.platform.comment.web.CommentManagerActions
CHILDREN_COMMENT_LIST
 
Constructor Summary
CommentManagerActionsBean()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentManagerActionsBean

public CommentManagerActionsBean()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.