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

ControllerCommand - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.core.command
Class ControllerCommand

java.lang.Object
  extended byorg.jboss.portal.common.invocation.Invocation
      extended byorg.jboss.portal.core.command.ControllerCommand
Direct Known Subclasses:
PortalObjectCommand, StreamContentCommand

public abstract class ControllerCommand
extends Invocation

A controller command.


Field Summary
protected  CommandContext context
          The context of the command.
protected static org.jboss.logging.Logger log
          .
 
Constructor Summary
protected ControllerCommand()
           
 
Method Summary
 void create()
          Setup state before invocation.
 void destroy()
          Destroy state after invocation.
protected  void dispatch()
          Dispatch the call to the target.
 void enforceSecurity(PortalAuthorizationManager pam)
          Enforce the security on this command.
abstract  void execute()
          Execute the command.
 CommandContext getContext()
           
abstract  CommandInfo getInfo()
          Return the meta data of this command.
 void setContext(CommandContext context)
           
 
Methods inherited from class org.jboss.portal.common.invocation.Invocation
getAttribute, invoke, invokeNext, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.jboss.logging.Logger log
.


context

protected CommandContext context
The context of the command.

Constructor Detail

ControllerCommand

protected ControllerCommand()
Method Detail

getInfo

public abstract CommandInfo getInfo()
Return the meta data of this command.


getContext

public CommandContext getContext()

setContext

public void setContext(CommandContext context)

enforceSecurity

public void enforceSecurity(PortalAuthorizationManager pam)
                     throws SecurityException,
                            PortalSecurityException
Enforce the security on this command.

Throws:
PortalSecurityException
SecurityException

create

public void create()
            throws CommandException
Setup state before invocation.

Throws:
CommandException

destroy

public void destroy()
Destroy state after invocation.


dispatch

protected void dispatch()
                 throws java.lang.Exception,
                        InvocationException
Description copied from class: Invocation
Dispatch the call to the target.

Specified by:
dispatch in class Invocation
Throws:
java.lang.Exception
InvocationException

execute

public abstract void execute()
                      throws CommandException
Execute the command.

Throws:
CommandException