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 initialize()
void documentChanged()
void initComments()
void initComments(DocumentModel commentedDoc)
List<ThreadEntry> getCommentsAsThread()
List<ThreadEntry> getCommentsAsThread(DocumentModel commentedDoc)
List<ThreadEntry> getCommentsAsThreadOnDoc(DocumentModel doc)
String beginComment()
String cancelComment()
String addComment()
String createComment(DocumentModel docToComment)
DocumentModel addComment(DocumentModel comment)
String deleteComment()
String deleteComment(String commentId)
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(javax.faces.event.ActionEvent event)
List<UIComment> getLastCommentsByDate(String commentNumber)
commentNumber
- the number of comment to fetchList<UIComment> getLastCommentsByDate(String commentNumber, DocumentModel commentedDoc)
commentNumber
- the number of comment to fetchcommentedDoc
- Copyright © 2018 Nuxeo. All rights reserved.