|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadAction
This Action Listener represents a Thread inside a forum.
Method Summary | |
---|---|
String |
addThread()
Adds the thread inside the forum. |
ThreadAdapter |
getAdapter(DocumentModel thread)
|
List<DocumentModel> |
getAllPosts(DocumentModel thread,
String state)
Gets all Posts in the Thread with the specified state. |
String |
getDescription()
Gets the description of the Thread. |
DocumentModel |
getLastPostPublished(DocumentModel thread)
Gets the latest post published in given thread. |
String |
getModerationAsString(DocumentModel thread)
Return the label of the moderation state of the thread |
List<String> |
getModerators()
Get all moderators on the thread. |
DocumentModel |
getParentPost(int post)
Return the parent post of the specified index of the post in the getPostsAsThread() list. |
List<ThreadEntry> |
getPostsAsThread()
Gets all available posts in the thread according the Post state and principal rights. |
List<DocumentModel> |
getPostsPending(DocumentModel thread)
Gets pending posts in a thread. |
List<DocumentModel> |
getPostsPublished(DocumentModel thread)
Gets published posts in a thread. |
String |
getTitle()
Gets the title of the Thread to be created. |
boolean |
isCurrentThreadModerated()
Returns true if the thread is moderated, false otherwise. |
boolean |
isModerated()
Returns true if the thread is moderated, false otherwise. |
boolean |
isParentPostPublished(int post)
Return true if the parent post identified by it's number in the getPostsAsThread list is published. |
boolean |
isPrincipalGroupModerator()
Returns true if the principal(s group is a moderator group |
boolean |
isPrincipalModerator()
Returns true if the principal (logged user) is a moderator, else otherwise. |
boolean |
isThreadModerated(DocumentModel thread)
Returns true if the given thread is moderated, false otherwise. |
void |
setDescription(String description)
Sets the description of the Thread. |
void |
setModerated(boolean moderated)
Sets the moderation on a thread. |
void |
setTitle(String title)
Sets the title of the Thread. |
Method Detail |
---|
String getTitle()
void setTitle(String title)
String getDescription()
void setDescription(String description)
String addThread() throws ClientException
ClientException
- if the Thread can't be createdboolean isModerated()
String getModerationAsString(DocumentModel thread) throws ClientException
thread
- is the thread we want
ClientException
void setModerated(boolean moderated)
List<String> getModerators()
boolean isPrincipalModerator()
boolean isPrincipalGroupModerator()
boolean isCurrentThreadModerated() throws ClientException
ClientException
boolean isThreadModerated(DocumentModel thread) throws ClientException
thread
- is the thread to test
ClientException
DocumentModel getLastPostPublished(DocumentModel thread) throws ClientException
ClientException
List<ThreadEntry> getPostsAsThread() throws ClientException
ClientException
List<DocumentModel> getAllPosts(DocumentModel thread, String state) throws ClientException
ClientException
List<DocumentModel> getPostsPublished(DocumentModel thread) throws ClientException
ClientException
List<DocumentModel> getPostsPending(DocumentModel thread) throws ClientException
ClientException
DocumentModel getParentPost(int post) throws ClientException
ClientException
boolean isParentPostPublished(int post) throws ClientException
ClientException
ThreadAdapter getAdapter(DocumentModel thread)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |