@Name(value="postAction") @Scope(value=CONVERSATION) public class PostActionBean extends Object implements PostAction
Constructor and Description |
---|
PostActionBean() |
Modifier and Type | Method and Description |
---|---|
String |
addPost()
Adds the post to the thread and starts the moderation WF on the post
created.
|
String |
approvePost(DocumentModel post)
Ends the task on a post.
|
String |
cancelPost()
Cancels the action of adding a Post.
|
boolean |
checkWritePermissionOnThread() |
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.
|
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.
|
String |
getText()
Gets the text of the post at creation time.
|
String |
getTitle()
Gets the title of the post for creation purpose.
|
boolean |
isPostPublished(DocumentModel post)
Returns true if the post is published, false otherwise.
|
String |
rejectPost(DocumentModel post) |
void |
setFileContent(Blob fileContent)
Sets the content of the attached file of the post at creation time.
|
void |
setFilename(String filename)
Sets the name of the attached file of the post at creation time.
|
void |
setText(String text)
Sets the text of the post at creation time.
|
void |
setTitle(String title)
Sets the title of the post at creation time.
|
public boolean checkWritePermissionOnThread()
checkWritePermissionOnThread
in interface PostAction
public String addPost() throws ClientException
addPost
in interface PostAction
ClientException
public String cancelPost() throws ClientException
PostAction
cancelPost
in interface PostAction
ClientException
public String deletePost() throws ClientException
PostAction
deletePost
in interface PostAction
ClientException
public String rejectPost(DocumentModel post) throws ClientException
rejectPost
in interface PostAction
ClientException
public 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 String getText()
PostAction
getText
in interface PostAction
public void setText(String text)
PostAction
setText
in interface PostAction
public String getFilename()
PostAction
getFilename
in interface PostAction
public void setFilename(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 String getTitle() throws ClientException
getTitle
in interface PostAction
ClientException
public void setTitle(String title)
PostAction
setTitle
in interface PostAction
Copyright © 2013 Nuxeo SA. All Rights Reserved.