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
ClientException
String deletePost() throws ClientException
ClientException
String cancelPost() throws ClientException
ClientException
DocumentModel getParentThread()
boolean isPostPublished(DocumentModel post) throws ClientException
ClientException
String approvePost(DocumentModel post) throws ClientException
ClientException
String rejectPost(DocumentModel post) throws ClientException
ClientException
String getTitle() throws ClientException
ClientException
void setTitle(String title)
String getText()
void setText(String text)
String getFilename()
void setFilename(String filename)
Blob getFileContent()
void setFileContent(Blob fileContent)
Copyright © 2015 Nuxeo SA. All rights reserved.