@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 PostActionpublic String addPost() throws ClientException
addPost in interface PostActionClientExceptionpublic String cancelPost() throws ClientException
PostActioncancelPost in interface PostActionClientExceptionpublic String deletePost() throws ClientException
PostActiondeletePost in interface PostActionClientExceptionpublic String rejectPost(DocumentModel post) throws ClientException
rejectPost in interface PostActionClientExceptionpublic String approvePost(DocumentModel post) throws ClientException
approvePost in interface PostActionClientExceptionpublic DocumentModel getParentThread()
PostActiongetParentThread in interface PostActionpublic boolean isPostPublished(DocumentModel post) throws ClientException
PostActionisPostPublished in interface PostActionClientExceptionpublic String getText()
PostActiongetText in interface PostActionpublic void setText(String text)
PostActionsetText in interface PostActionpublic String getFilename()
PostActiongetFilename in interface PostActionpublic void setFilename(String filename)
PostActionsetFilename in interface PostActionpublic Blob getFileContent()
PostActiongetFileContent in interface PostActionpublic void setFileContent(Blob fileContent)
PostActionsetFileContent in interface PostActionpublic String getTitle() throws ClientException
getTitle in interface PostActionClientExceptionpublic void setTitle(String title)
PostActionsetTitle in interface PostActionCopyright © 2014 Nuxeo SA. All Rights Reserved.