public interface CommentManagerActions
Modifier and Type | Field and Description |
---|---|
static String |
CHILDREN_COMMENT_LIST |
Modifier and Type | Method and Description |
---|---|
String |
addComment()
creates a new comment from
|
DocumentModel |
addComment(DocumentModel comment)
Add the given comment DocumentModel to commentableDoc.
|
String |
beginComment() |
String |
cancelComment() |
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.
|
List<Action> |
getActionsForComment() |
List<Action> |
getActionsForComment(String category) |
List<ThreadEntry> |
getCommentsAsThread()
Initializes uiComments with currentDocument if uiComments is null.
|
List<ThreadEntry> |
getCommentsAsThread(DocumentModel commentedDoc)
Initialize uiComments with given Document if uiComments is null.
|
List<ThreadEntry> |
getCommentsAsThreadOnDoc(DocumentModel 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 currentDocument.
|
void |
initComments(DocumentModel commentedDoc)
Initializes uiComments with given Document.
|
void |
initialize()
Bean initialization method.
|
void |
setNewContent(String newContent) |
void |
setSavedReplyCommentId(String savedReplyCommentId) |
void |
setShowCreateForm(boolean flag) |
void |
toggleCreateForm(ActionEvent event) |
static final String CHILDREN_COMMENT_LIST
List<Action> getActionsForComment()
List<Action> getActionsForComment(String category)
void documentChanged()
void initComments() throws ClientException
ClientException
void initComments(DocumentModel commentedDoc) throws ClientException
ClientException
List<ThreadEntry> getCommentsAsThread() throws ClientException
ClientException
List<ThreadEntry> getCommentsAsThread(DocumentModel commentedDoc) throws ClientException
ClientException
List<ThreadEntry> getCommentsAsThreadOnDoc(DocumentModel doc) throws ClientException
ClientException
String beginComment()
String cancelComment()
String addComment() throws ClientException
ClientException
String createComment(DocumentModel docToComment) throws ClientException
ClientException
DocumentModel addComment(DocumentModel comment) throws ClientException
ClientException
String deleteComment() throws ClientException
ClientException
String deleteComment(String commentId) throws ClientException
ClientException
void destroy()
String getNewContent()
void setNewContent(String newContent)
String getPrincipalName()
boolean getPrincipalIsAdmin()
boolean getCommentStarted()
String getSavedReplyCommentId()
void setSavedReplyCommentId(String savedReplyCommentId)
boolean getShowCreateForm()
void setShowCreateForm(boolean flag)
void toggleCreateForm(ActionEvent event)
List<UIComment> getLastCommentsByDate(String commentNumber) throws ClientException
commentNumber
- the number of comment to fetchClientException
List<UIComment> getLastCommentsByDate(String commentNumber, DocumentModel commentedDoc) throws ClientException
commentNumber
- the number of comment to fetchcommentedDoc
- ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.