站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

ForumCommand - JBOSS Portal 2.4 API 英文版文档


org.jboss.portlet.forums.commands.post
Class ForumCommand

java.lang.Object
  extended byorg.jboss.portlet.command.ActionCommand
      extended byorg.jboss.portlet.forums.commands.AbstractCommand
          extended byorg.jboss.portlet.forums.commands.post.ForumCommand
All Implemented Interfaces:
Command, CommandConstants
Direct Known Subclasses:
NewTopicCommand, TopicCommand

public abstract class ForumCommand
extends AbstractCommand


Nested Class Summary
 
Nested classes inherited from class org.jboss.portlet.forums.commands.CommandConstants
CommandConstants.ImmutableResult
 
Field Summary
 Category category
          DOCUMENT_ME
 User currentUser
          DOCUMENT_ME
 Forum forum
          DOCUMENT_ME
 int forumId
          DOCUMENT_ME
 ForumsModule forumsModule
          DOCUMENT_ME
 Message message
          DOCUMENT_ME
 Poll poll
          DOCUMENT_ME
 Poster poster
          DOCUMENT_ME
 
Fields inherited from class org.jboss.portlet.forums.commands.AbstractCommand
log
 
Fields inherited from interface org.jboss.portlet.forums.commands.CommandConstants
TYPE_ALREADY_VOTED, TYPE_CANNOT_ADD_ATTACHMENT, TYPE_CANNOT_CREATE_CATEGORY_INSERTION_FAILED, TYPE_CANNOT_CREATE_CATEGORY_INVALID_NAME, TYPE_CANNOT_CREATE_FORUM_INSERTION_FAILED, TYPE_CANNOT_CREATE_FORUM_INVALID_CATEGORY, TYPE_CANNOT_CREATE_FORUM_INVALID_NAME, TYPE_CANNOT_DELETE_ATTACHMENT, TYPE_CANNOT_DELETE_POLL, TYPE_CANNOT_DELETE_REPLIED, TYPE_CANNOT_INSERT_VOTE, TYPE_CANNOT_LOCK_TOPIC_MOVED, TYPE_CANNOT_MOVE_AND_REMOVE_FORUM, TYPE_CANNOT_MOVE_TOPIC, TYPE_CANNOT_OBTAIN_USER_DATA, TYPE_CANNOT_ORDER_CATEGORIES, TYPE_CANNOT_ORDER_FORUMS, TYPE_CANNOT_QUERY, TYPE_CANNOT_REMOVE_CATEGORY, TYPE_CANNOT_REMOVE_FORUM_REMOVAL_FAILED, TYPE_CANNOT_REMOVE_TOPICS, TYPE_CANNOT_SPLIT_TOPIC, TYPE_CANNOT_XXX_OTHER_POST_WHEN_NOT_MODERATOR, TYPE_CATEGORIES_ORDERED, TYPE_CATEGORY_CREATED, TYPE_CATEGORY_REMOVED, TYPE_CATEGORY_UPDATED, TYPE_COMPOSITE, TYPE_CONTINUE, TYPE_COULD_NOT_OBTAIN_VOTE_DATA, TYPE_EDIT_POST_POSTED, TYPE_ERROR_IN_DELETING_ATTACHMENT, TYPE_ERROR_IN_DELETING_POLL, TYPE_ERROR_IN_DELETING_POST, TYPE_ERROR_IN_POSTING, TYPE_FLOODING_CANNOT_CREATE, TYPE_FORUM_CREATED, TYPE_FORUM_LOCKED, TYPE_FORUM_MOVED_AND_REMOVED, TYPE_FORUM_REMOVED, TYPE_FORUM_UPDATED, TYPE_FORUMS_ORDERED, TYPE_INVALID_POLL_OPTION, TYPE_INVALID_POLL_TITLE, TYPE_INVALID_POST_MESSAGE, TYPE_INVALID_POST_SUBJECT, TYPE_NEW_TOPIC_POSTED, TYPE_NO_SUCH_FORUM, TYPE_NO_SUCH_POST, TYPE_NO_SUCH_TOPIC, TYPE_NO_VOTE_OPTION, TYPE_NOT_AUTHORIZED, TYPE_NOT_SELECTED_VOTE, TYPE_POLL_DELETED, TYPE_POST_DELETED, TYPE_REDIRECT, TYPE_REPLY_POSTED, TYPE_REPOSTED, TYPE_TOO_FEW_POLL_OPTION, TYPE_TOO_MANY_POLL_OPTION, TYPE_TOPIC_IS_LOCKED, TYPE_TOPIC_LOCKED, TYPE_TOPIC_MOVED, TYPE_TOPIC_SPLITED, TYPE_TOPIC_UNLOCKED, TYPE_TOPICS_REMOVED, TYPE_VOTE_CAST, TYPE_VOTE_POSTED
 
Constructor Summary
protected ForumCommand(JBossActionRequest request, JBossActionResponse response)
           
 
Method Summary
protected abstract  Result __execute()
          DOCUMENT_ME
abstract  int authType()
          DOCUMENT_ME
 User currentUser()
          DOCUMENT_ME
 Result execute()
          DOCUMENT_ME
protected  void find()
          DOCUMENT_ME
 ForumsModule getModule()
          DOCUMENT_ME
 Poster getPoster()
          DOCUMENT_ME
protected  void prepare()
          DOCUMENT_ME
 void setCurrentUser(User currentUser)
          DOCUMENT_ME
 void setModule(ForumsModule module)
          DOCUMENT_ME
 void setPoster(Poster poster)
          DOCUMENT_ME
 
Methods inherited from class org.jboss.portlet.forums.commands.AbstractCommand
getConfigurator
 
Methods inherited from class org.jboss.portlet.command.ActionCommand
getRequest, getResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

forumId

public int forumId
DOCUMENT_ME


currentUser

public User currentUser
DOCUMENT_ME


forum

public Forum forum
DOCUMENT_ME


category

public Category category
DOCUMENT_ME


poster

public Poster poster
DOCUMENT_ME


message

public Message message
DOCUMENT_ME


poll

public Poll poll
DOCUMENT_ME


forumsModule

public ForumsModule forumsModule
DOCUMENT_ME

Constructor Detail

ForumCommand

protected ForumCommand(JBossActionRequest request,
                       JBossActionResponse response)
Method Detail

find

protected void find()
DOCUMENT_ME


prepare

protected void prepare()
                throws ValidationException
DOCUMENT_ME

Throws:
ValidationException - DOCUMENT_ME

execute

public Result execute()
DOCUMENT_ME

Returns:
DOCUMENT_ME

authType

public abstract int authType()
DOCUMENT_ME

Returns:
DOCUMENT_ME

__execute

protected abstract Result __execute()
DOCUMENT_ME

Returns:
DOCUMENT_ME

currentUser

public User currentUser()
DOCUMENT_ME

Returns:
DOCUMENT_ME

setCurrentUser

public void setCurrentUser(User currentUser)
DOCUMENT_ME

Parameters:
currentUser - DOCUMENT_ME

getPoster

public Poster getPoster()
DOCUMENT_ME

Returns:
DOCUMENT_ME

setPoster

public void setPoster(Poster poster)
DOCUMENT_ME

Parameters:
poster - DOCUMENT_ME

getModule

public ForumsModule getModule()
DOCUMENT_ME

Returns:
DOCUMENT_ME

setModule

public void setModule(ForumsModule module)
DOCUMENT_ME

Parameters:
module - DOCUMENT_ME