public abstract class AbstractCommentManagerActionsBean extends Object implements CommentManagerActions
CHILDREN_COMMENT_LIST| Constructor and Description |
|---|
AbstractCommentManagerActionsBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
addComment()
creates a new comment from
|
DocumentModel |
addComment(DocumentModel comment)
Add the given comment DocumentModel to commentableDoc.
|
DocumentModel |
addComment(DocumentModel comment,
DocumentModel docToComment) |
String |
beginComment() |
String |
cancelComment() |
void |
cleanContextVariable() |
String |
createComment(DocumentModel docToComment)
Same as addComment() method but using the given document instead of
currentDocument.
|
String |
deleteComment() |
String |
deleteComment(String commentId) |
void |
destroy() |
void |
documentChanged()
Clean all the bean's context variables.
|
void |
flattenTree(List<ThreadEntry> commentThread,
UIComment uiComment,
int depth)
Visits a list of comment trees and puts them into a list of
"ThreadEntry"s.
|
List<Action> |
getActionsForComment() |
List<Action> |
getActionsForComment(String category) |
void |
getChildren(UIComment comment)
Retrieves children for a given comment.
|
List<UIComment> |
getComments(DocumentModel doc) |
List<ThreadEntry> |
getCommentsAsThread(DocumentModel commentedDoc)
Initialize uiComments with given Document if uiComments is null.
|
List<ThreadEntry> |
getCommentsAsThreadOnDoc(DocumentModel doc)
Recursively retrieves all comments of a doc.
|
boolean |
getCommentStarted() |
List<UIComment> |
getLastCommentsByDate(String commentNumber)
Retrieves a given number of comments from currentDocument.
|
List<UIComment> |
getLastCommentsByDate(String commentNumber,
DocumentModel commentedDoc)
Retrieves a given number of comments from the given Document.
|
String |
getNewContent() |
boolean |
getPrincipalIsAdmin() |
String |
getPrincipalName() |
String |
getSavedReplyCommentId() |
boolean |
getShowCreateForm() |
void |
initComments()
Initializes uiComments with Comments of current document.
|
void |
initComments(DocumentModel commentedDoc)
Initializes uiComments with Comments of current document.
|
void |
initialize()
Bean initialization method.
|
void |
setNewContent(String newContent) |
void |
setSavedReplyCommentId(String savedReplyCommentId) |
void |
setShowCreateForm(boolean flag) |
void |
toggleCreateForm(ActionEvent event) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommentsAsThread@Create public void initialize() throws Exception
CommentManagerActionsinitialize in interface CommentManagerActionsException@Destroy public void destroy()
destroy in interface CommentManagerActionspublic String getPrincipalName()
getPrincipalName in interface CommentManagerActionspublic boolean getPrincipalIsAdmin()
getPrincipalIsAdmin in interface CommentManagerActionspublic DocumentModel addComment(DocumentModel comment, DocumentModel docToComment) throws ClientException
ClientExceptionpublic DocumentModel addComment(DocumentModel comment) throws ClientException
CommentManagerActionsaddComment in interface CommentManagerActionsClientExceptionpublic String addComment() throws ClientException
CommentManagerActionsaddComment in interface CommentManagerActionsClientExceptionpublic String createComment(DocumentModel docToComment) throws ClientException
CommentManagerActionscreateComment in interface CommentManagerActionsClientException@Observer(value={"documentSelectionChanged","contentRootSelectionChanged","documentChanged"}, create=false) @BypassInterceptors public void documentChanged()
CommentManagerActionsdocumentChanged in interface CommentManagerActionspublic void initComments()
throws ClientException
initComments in interface CommentManagerActionsClientExceptionpublic void initComments(DocumentModel commentedDoc) throws ClientException
initComments in interface CommentManagerActionsClientExceptionpublic List<UIComment> getComments(DocumentModel doc) throws ClientException
ClientExceptionpublic List<ThreadEntry> getCommentsAsThreadOnDoc(DocumentModel doc) throws ClientException
getCommentsAsThreadOnDoc in interface CommentManagerActionsClientExceptionpublic List<ThreadEntry> getCommentsAsThread(DocumentModel commentedDoc) throws ClientException
CommentManagerActionsgetCommentsAsThread in interface CommentManagerActionsClientExceptionpublic void flattenTree(List<ThreadEntry> commentThread, UIComment uiComment, int depth)
public String deleteComment(String commentId) throws ClientException
deleteComment in interface CommentManagerActionsClientExceptionpublic String deleteComment() throws ClientException
deleteComment in interface CommentManagerActionsClientExceptionpublic String getNewContent()
getNewContent in interface CommentManagerActionspublic void setNewContent(String newContent)
setNewContent in interface CommentManagerActionspublic String beginComment()
beginComment in interface CommentManagerActionspublic String cancelComment()
cancelComment in interface CommentManagerActionspublic boolean getCommentStarted()
getCommentStarted in interface CommentManagerActionspublic void getChildren(UIComment comment)
public List<UIComment> getLastCommentsByDate(String commentNumber, DocumentModel commentedDoc) throws ClientException
CommentManagerActionsgetLastCommentsByDate in interface CommentManagerActionscommentNumber - the number of comment to fetchClientExceptionpublic List<UIComment> getLastCommentsByDate(String commentNumber) throws ClientException
CommentManagerActionsgetLastCommentsByDate in interface CommentManagerActionscommentNumber - the number of comment to fetchClientExceptionpublic String getSavedReplyCommentId()
getSavedReplyCommentId in interface CommentManagerActionspublic void setSavedReplyCommentId(String savedReplyCommentId)
setSavedReplyCommentId in interface CommentManagerActionspublic List<Action> getActionsForComment()
getActionsForComment in interface CommentManagerActionspublic List<Action> getActionsForComment(String category)
getActionsForComment in interface CommentManagerActionspublic boolean getShowCreateForm()
getShowCreateForm in interface CommentManagerActionspublic void setShowCreateForm(boolean flag)
setShowCreateForm in interface CommentManagerActionspublic void toggleCreateForm(ActionEvent event)
toggleCreateForm in interface CommentManagerActionspublic void cleanContextVariable()
Copyright © 2013 Nuxeo SA. All Rights Reserved.