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

WindowCommand - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.core.command
Class WindowCommand

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

public abstract class WindowCommand
extends PortalObjectCommand

A superclass for command that target a specific window.


Field Summary
protected  Instance instance
          The instance.
protected  Page page
          The portal.
protected  Portal portal
          The portal.
protected  Window window
          The window.
protected  java.lang.String windowRef
          The window ref.
 
Fields inherited from class org.jboss.portal.core.command.ControllerCommand
context, log
 
Constructor Summary
WindowCommand(java.lang.String windowRef)
           
 
Method Summary
 void create()
          Setup state before invocation.
 void enforceSecurity(PortalAuthorizationManager pam)
          We only enforce security at instance and component level.
 Instance getInstance()
           
 Page getPage()
           
 Portal getPortal()
           
 PortalObject getTarget()
          Return the target portal object of this command.
 Window getWindow()
           
 java.lang.String getWindowRef()
           
 
Methods inherited from class org.jboss.portal.core.command.ControllerCommand
destroy, dispatch, execute, getContext, getInfo, setContext
 
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

windowRef

protected java.lang.String windowRef
The window ref.


portal

protected Portal portal
The portal.


page

protected Page page
The portal.


window

protected Window window
The window.


instance

protected Instance instance
The instance.

Constructor Detail

WindowCommand

public WindowCommand(java.lang.String windowRef)
              throws java.lang.IllegalArgumentException
Method Detail

getTarget

public PortalObject getTarget()
Description copied from class: PortalObjectCommand
Return the target portal object of this command.

Specified by:
getTarget in class PortalObjectCommand
Returns:
the target portal object

getInstance

public Instance getInstance()

getWindowRef

public java.lang.String getWindowRef()

getPortal

public Portal getPortal()

getPage

public Page getPage()

getWindow

public Window getWindow()

create

public void create()
            throws CommandException
Description copied from class: ControllerCommand
Setup state before invocation.

Overrides:
create in class ControllerCommand
Throws:
CommandException

enforceSecurity

public void enforceSecurity(PortalAuthorizationManager pam)
                     throws SecurityException,
                            PortalSecurityException
We only enforce security at instance and component level.

Overrides:
enforceSecurity in class PortalObjectCommand
Parameters:
pam -
Throws:
SecurityException
PortalSecurityException