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(javax.faces.event.ActionEvent event) |
static final String CHILDREN_COMMENT_LIST
List<Action> getActionsForComment()
List<Action> getActionsForComment(String category)
void documentChanged()
void initComments()
throws ClientException
ClientExceptionvoid initComments(DocumentModel commentedDoc) throws ClientException
ClientExceptionList<ThreadEntry> getCommentsAsThread() throws ClientException
ClientExceptionList<ThreadEntry> getCommentsAsThread(DocumentModel commentedDoc) throws ClientException
ClientExceptionList<ThreadEntry> getCommentsAsThreadOnDoc(DocumentModel doc) throws ClientException
ClientExceptionString beginComment()
String cancelComment()
String addComment() throws ClientException
ClientExceptionString createComment(DocumentModel docToComment) throws ClientException
ClientExceptionDocumentModel addComment(DocumentModel comment) throws ClientException
ClientExceptionString deleteComment() throws ClientException
ClientExceptionString deleteComment(String commentId) throws ClientException
ClientExceptionvoid 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(javax.faces.event.ActionEvent event)
List<UIComment> getLastCommentsByDate(String commentNumber) throws ClientException
commentNumber - the number of comment to fetchClientExceptionList<UIComment> getLastCommentsByDate(String commentNumber, DocumentModel commentedDoc) throws ClientException
commentNumber - the number of comment to fetchcommentedDoc - ClientExceptionCopyright © 2014 Nuxeo SA. All rights reserved.