public interface PostAction extends Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
addPost()
Creates the Post and add it inside the Thread.
|
String |
approvePost(DocumentModel 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 at creation time.
|
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.
|
boolean checkWritePermissionOnThread()
String addPost() throws ClientException
ClientExceptionString deletePost() throws ClientException
ClientExceptionString cancelPost() throws ClientException
ClientExceptionDocumentModel getParentThread()
boolean isPostPublished(DocumentModel post) throws ClientException
ClientExceptionString approvePost(DocumentModel post) throws ClientException
ClientExceptionString rejectPost(DocumentModel post) throws ClientException
ClientExceptionString getTitle() throws ClientException
ClientExceptionvoid setTitle(String title)
String getText()
void setText(String text)
String getFilename()
void setFilename(String filename)
Blob getFileContent()
void setFileContent(Blob fileContent)
Copyright © 2013 Nuxeo SA. All Rights Reserved.