Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.forum.web.api
Interface PostAction

All Superinterfaces:
Serializable
All Known Implementing Classes:
PostActionBean

public interface PostAction
extends Serializable

Represents the Action Listener for a Post, created inside a Thread.

Author:
Brice Chaffangeon, Anahide Tchertchian

Method Summary
 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.
 

Method Detail

checkWritePermissionOnThread

boolean checkWritePermissionOnThread()

addPost

String addPost()
               throws ClientException
Creates the Post and add it inside the Thread.

Returns:
the view id
Throws:
ClientException

deletePost

String deletePost()
                  throws ClientException
Deletes the Post and in a the Thread.

Returns:
the view id after delete operation
Throws:
ClientException

cancelPost

String cancelPost()
                  throws ClientException
Cancels the action of adding a Post.

Returns:
the view id to stay on thread view
Throws:
ClientException

getParentThread

DocumentModel getParentThread()
Gets the Thread in which the Post is.


isPostPublished

boolean isPostPublished(DocumentModel post)
                        throws ClientException
Returns true if the post is published, false otherwise.

Throws:
ClientException

approvePost

String approvePost(DocumentModel post)
                   throws ClientException
Throws:
ClientException

rejectPost

String rejectPost(DocumentModel post)
                  throws ClientException
Throws:
ClientException

getTitle

String getTitle()
                throws ClientException
Gets the title of the post at creation time.

Throws:
ClientException

setTitle

void setTitle(String title)
Sets the title of the post at creation time.


getText

String getText()
Gets the text of the post at creation time.


setText

void setText(String text)
Sets the text of the post at creation time.


getFilename

String getFilename()
Gets the name of the attached file of the post at creation time.


setFilename

void setFilename(String filename)
Sets the name of the attached file of the post at creation time.


getFileContent

Blob getFileContent()
Gets the content of the attached file of the post at creation time.


setFileContent

void setFileContent(Blob fileContent)
Sets the content of the attached file of the post at creation time.


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.