|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.comment.web.AbstractCommentManagerActionsBean
public abstract class AbstractCommentManagerActionsBean
Nested Class Summary | |
---|---|
static class |
AbstractCommentManagerActionsBean.FollowTransitionUnrestricted
|
Field Summary |
---|
Fields inherited from interface org.nuxeo.ecm.platform.comment.web.CommentManagerActions |
---|
CHILDREN_COMMENT_LIST |
Constructor Summary | |
---|---|
AbstractCommentManagerActionsBean()
|
Method Summary | |
---|---|
java.lang.String |
addComment()
creates a new comment from |
DocumentModel |
addComment(DocumentModel comment)
Add the given comment DocumentModel to commentableDoc. |
DocumentModel |
addComment(DocumentModel comment,
DocumentModel docToComment)
|
java.lang.String |
beginComment()
|
java.lang.String |
cancelComment()
|
void |
cleanContextVariable()
|
java.lang.String |
createComment(DocumentModel docToComment)
Same as addComment() method but using the given document instead of currentDocument. |
java.lang.String |
deleteComment()
|
java.lang.String |
deleteComment(java.lang.String commentId)
|
void |
destroy()
|
void |
documentChanged()
Clean all the bean's context variables. |
void |
flattenTree(java.util.List<ThreadEntry> commentThread,
UIComment uiComment,
int depth)
Visits a list of comment trees and puts them into a list of "ThreadEntry"s. |
java.util.List<Action> |
getActionsForComment()
|
java.util.List<Action> |
getActionsForComment(java.lang.String category)
|
void |
getChildren(UIComment comment)
Retrieves children for a given comment. |
java.util.List<UIComment> |
getComments(DocumentModel doc)
|
java.util.List<ThreadEntry> |
getCommentsAsThread(DocumentModel commentedDoc)
Initialize uiComments with given Document if uiComments is null. |
java.util.List<ThreadEntry> |
getCommentsAsThreadOnDoc(DocumentModel doc)
Recursively retrieves all comments of a doc. |
boolean |
getCommentStarted()
|
java.util.List<UIComment> |
getLastCommentsByDate(java.lang.String commentNumber)
Retrieves a given number of comments from currentDocument. |
java.util.List<UIComment> |
getLastCommentsByDate(java.lang.String commentNumber,
DocumentModel commentedDoc)
Retrieves a given number of comments from the given Document. |
java.lang.String |
getNewContent()
|
boolean |
getPrincipalIsAdmin()
|
java.lang.String |
getPrincipalName()
|
java.lang.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(java.lang.String newContent)
|
void |
setSavedReplyCommentId(java.lang.String savedReplyCommentId)
|
void |
setShowCreateForm(boolean flag)
|
void |
toggleCreateForm(javax.faces.event.ActionEvent event)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nuxeo.ecm.platform.comment.web.CommentManagerActions |
---|
getCommentsAsThread |
Constructor Detail |
---|
public AbstractCommentManagerActionsBean()
Method Detail |
---|
@Create public void initialize() throws java.lang.Exception
CommentManagerActions
initialize
in interface CommentManagerActions
java.lang.Exception
@Destroy public void destroy()
destroy
in interface CommentManagerActions
public java.lang.String getPrincipalName()
getPrincipalName
in interface CommentManagerActions
public boolean getPrincipalIsAdmin()
getPrincipalIsAdmin
in interface CommentManagerActions
public DocumentModel addComment(DocumentModel comment, DocumentModel docToComment) throws ClientException
ClientException
public DocumentModel addComment(DocumentModel comment) throws ClientException
CommentManagerActions
addComment
in interface CommentManagerActions
ClientException
public java.lang.String addComment() throws ClientException
CommentManagerActions
addComment
in interface CommentManagerActions
ClientException
public java.lang.String createComment(DocumentModel docToComment) throws ClientException
CommentManagerActions
createComment
in interface CommentManagerActions
ClientException
@Observer(value={"documentSelectionChanged","contentRootSelectionChanged","documentChanged"}, create=false) @BypassInterceptors public void documentChanged()
CommentManagerActions
documentChanged
in interface CommentManagerActions
public void initComments() throws ClientException
initComments
in interface CommentManagerActions
ClientException
public void initComments(DocumentModel commentedDoc) throws ClientException
initComments
in interface CommentManagerActions
ClientException
public java.util.List<UIComment> getComments(DocumentModel doc) throws ClientException
ClientException
public java.util.List<ThreadEntry> getCommentsAsThreadOnDoc(DocumentModel doc) throws ClientException
getCommentsAsThreadOnDoc
in interface CommentManagerActions
ClientException
public java.util.List<ThreadEntry> getCommentsAsThread(DocumentModel commentedDoc) throws ClientException
CommentManagerActions
getCommentsAsThread
in interface CommentManagerActions
ClientException
public void flattenTree(java.util.List<ThreadEntry> commentThread, UIComment uiComment, int depth)
public java.lang.String deleteComment(java.lang.String commentId) throws ClientException
deleteComment
in interface CommentManagerActions
ClientException
public java.lang.String deleteComment() throws ClientException
deleteComment
in interface CommentManagerActions
ClientException
public java.lang.String getNewContent()
getNewContent
in interface CommentManagerActions
public void setNewContent(java.lang.String newContent)
setNewContent
in interface CommentManagerActions
public java.lang.String beginComment()
beginComment
in interface CommentManagerActions
public java.lang.String cancelComment()
cancelComment
in interface CommentManagerActions
public boolean getCommentStarted()
getCommentStarted
in interface CommentManagerActions
public void getChildren(UIComment comment)
public java.util.List<UIComment> getLastCommentsByDate(java.lang.String commentNumber, DocumentModel commentedDoc) throws ClientException
CommentManagerActions
getLastCommentsByDate
in interface CommentManagerActions
commentNumber
- the number of comment to fetch
ClientException
public java.util.List<UIComment> getLastCommentsByDate(java.lang.String commentNumber) throws ClientException
CommentManagerActions
getLastCommentsByDate
in interface CommentManagerActions
commentNumber
- the number of comment to fetch
ClientException
public java.lang.String getSavedReplyCommentId()
getSavedReplyCommentId
in interface CommentManagerActions
public void setSavedReplyCommentId(java.lang.String savedReplyCommentId)
setSavedReplyCommentId
in interface CommentManagerActions
public java.util.List<Action> getActionsForComment()
getActionsForComment
in interface CommentManagerActions
public java.util.List<Action> getActionsForComment(java.lang.String category)
getActionsForComment
in interface CommentManagerActions
public boolean getShowCreateForm()
getShowCreateForm
in interface CommentManagerActions
public void setShowCreateForm(boolean flag)
setShowCreateForm
in interface CommentManagerActions
public void toggleCreateForm(javax.faces.event.ActionEvent event)
toggleCreateForm
in interface CommentManagerActions
public void cleanContextVariable()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |