Nuxeo Enterprise Platform 5.4

org.nuxeo.dam.webapp.comment
Class CommentActions

java.lang.Object
  extended by org.nuxeo.dam.webapp.comment.CommentActions
All Implemented Interfaces:
Serializable

@Name(value="commentActions")
@Scope(value=CONVERSATION)
@Install(precedence=10)
public class CommentActions
extends Object
implements Serializable

Comments related actions on DAM.

Author:
Catalin Baican
See Also:
Serialized Form

Nested Class Summary
static class CommentActions.FollowTransitionUnrestricted
           
 
Constructor Summary
CommentActions()
           
 
Method Summary
 void addComment()
           
 org.nuxeo.ecm.core.api.DocumentModel addComment(org.nuxeo.ecm.core.api.DocumentModel comment)
           
 void cleanContextVariable()
           
 void deleteComment(org.nuxeo.ecm.core.api.DocumentModel comment)
           
 List<org.nuxeo.ecm.core.api.DocumentModel> getComments()
           
 String getNewContent()
           
 boolean isShowCommentsArea()
           
 boolean isShowCreateForm()
           
 void setNewContent(String newContent)
           
 void setShowCommentsArea(boolean showCommentsArea)
           
 void setShowCreateForm(boolean showCreateForm)
           
 void toggleCommentsArea(ActionEvent event)
           
 void toggleCreateForm(ActionEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentActions

public CommentActions()
Method Detail

addComment

public void addComment()
                throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

addComment

public org.nuxeo.ecm.core.api.DocumentModel addComment(org.nuxeo.ecm.core.api.DocumentModel comment)
                                                throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

getComments

public List<org.nuxeo.ecm.core.api.DocumentModel> getComments()
                                                       throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

deleteComment

public void deleteComment(org.nuxeo.ecm.core.api.DocumentModel comment)
                   throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

cleanContextVariable

@Observer(value="documentSelectionChanged",
          create=false)
@BypassInterceptors
public void cleanContextVariable()

getNewContent

public String getNewContent()

setNewContent

public void setNewContent(String newContent)

isShowCreateForm

public boolean isShowCreateForm()

setShowCreateForm

public void setShowCreateForm(boolean showCreateForm)

toggleCreateForm

public void toggleCreateForm(ActionEvent event)

isShowCommentsArea

public boolean isShowCommentsArea()

setShowCommentsArea

public void setShowCommentsArea(boolean showCommentsArea)

toggleCommentsArea

public void toggleCommentsArea(ActionEvent event)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.