|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nuxeo.ecm.platform.forum.web.PostActionBean
@Name(value="postAction") @Scope(value=CONVERSATION) public class PostActionBean
This action listener is used to create a Post inside a Thread and also to handle the moderation cycle on Post.
Constructor Summary | |
---|---|
PostActionBean()
|
Method Summary | |
---|---|
java.lang.String |
addPost()
Adds the post to the thread and starts the moderation WF on the post created. |
java.lang.String |
approvePost(DocumentModel post)
Ends the task on a post. |
java.lang.String |
cancelPost()
Cancels the action of adding a Post. |
boolean |
checkWritePermissionOnThread()
|
java.lang.String |
deletePost()
Deletes the Post and in a the Thread. |
Blob |
getFileContent()
Gets the content of the attached file of the post at creation time. |
java.lang.String |
getFilename()
Gets the name of the attached file of the post at creation time. |
DocumentModel |
getParentThread()
Gets the Thread in which the Post is. |
java.lang.String |
getText()
Gets the text of the post at creation time. |
java.lang.String |
getTitle()
Gets the title of the post for creation purpose. |
boolean |
isPostPublished(DocumentModel post)
Returns true if the post is published, false otherwise. |
java.lang.String |
rejectPost(DocumentModel post)
|
void |
setFileContent(Blob fileContent)
Sets the content of the attached file of the post at creation time. |
void |
setFilename(java.lang.String filename)
Sets the name of the attached file of the post at creation time. |
void |
setText(java.lang.String text)
Sets the text of the post at creation time. |
void |
setTitle(java.lang.String title)
Sets the title of the post at creation time. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostActionBean()
Method Detail |
---|
public boolean checkWritePermissionOnThread()
checkWritePermissionOnThread
in interface PostAction
public java.lang.String addPost() throws ClientException
addPost
in interface PostAction
ClientException
public java.lang.String cancelPost() throws ClientException
PostAction
cancelPost
in interface PostAction
ClientException
public java.lang.String deletePost() throws ClientException
PostAction
deletePost
in interface PostAction
ClientException
public java.lang.String rejectPost(DocumentModel post) throws ClientException
rejectPost
in interface PostAction
ClientException
public java.lang.String approvePost(DocumentModel post) throws ClientException
approvePost
in interface PostAction
ClientException
public DocumentModel getParentThread()
PostAction
getParentThread
in interface PostAction
public boolean isPostPublished(DocumentModel post) throws ClientException
PostAction
isPostPublished
in interface PostAction
ClientException
public java.lang.String getText()
PostAction
getText
in interface PostAction
public void setText(java.lang.String text)
PostAction
setText
in interface PostAction
public java.lang.String getFilename()
PostAction
getFilename
in interface PostAction
public void setFilename(java.lang.String filename)
PostAction
setFilename
in interface PostAction
public Blob getFileContent()
PostAction
getFileContent
in interface PostAction
public void setFileContent(Blob fileContent)
PostAction
setFileContent
in interface PostAction
public java.lang.String getTitle() throws ClientException
getTitle
in interface PostAction
ClientException
public void setTitle(java.lang.String title)
PostAction
setTitle
in interface PostAction
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |