org.jboss.portal.core.model.portal.command.render
Class RenderPageCommand
java.lang.Object
org.jboss.portal.common.invocation.Invocation
org.jboss.portal.core.controller.ControllerCommand
org.jboss.portal.core.model.portal.command.PortalObjectCommand
org.jboss.portal.core.model.portal.command.PortalCommand
org.jboss.portal.core.model.portal.command.PageCommand
org.jboss.portal.core.model.portal.command.render.RenderPageCommand
public final class RenderPageCommand
- extends PageCommand
Render a full page.
- Version:
- $Revision: 11068 $
- Author:
- Julien Viet
| Fields inherited from class org.jboss.portal.core.model.portal.command.PageCommand |
page |
| Fields inherited from class org.jboss.portal.common.invocation.Invocation |
EMPTY_STACK |
| Methods inherited from class org.jboss.portal.common.invocation.Invocation |
getAttribute, getHandler, invoke, invokeNext, removeAttribute, setAttribute, setHandler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenderPageCommand
public RenderPageCommand(PortalObjectId pageId)
getInfo
public CommandInfo getInfo()
- Get the command info (runtime info about the command)
- Specified by:
getInfo in class ControllerCommand
- Returns:
- info about the command
getWindows
public java.util.Collection getWindows()
- Returns the modifiable list of windows.
- Returns:
- the windows on the page
acquireResources
public void acquireResources()
throws NoSuchResourceException
- Overrides:
acquireResources in class PortalCommand
- Throws:
NoSuchResourceException
initPage
protected Page initPage()
- Specified by:
initPage in class PageCommand
enforceSecurity
public void enforceSecurity(PortalAuthorizationManager pam)
throws SecurityException
- Description copied from class:
PortalObjectCommand
- Enforce the security on this command using the provided portal authorization manager.
- Overrides:
enforceSecurity in class PortalObjectCommand
- Parameters:
pam - the portal authorization manager
- Throws:
SecurityException
execute
public ControllerResponse execute()
throws ControllerException,
org.jboss.portal.common.invocation.InvocationException
- execute the command
- Specified by:
execute in class ControllerCommand
- Throws:
org.jboss.portal.common.invocation.InvocationException
ControllerException
getLayout
public static PortalLayout getLayout(LayoutService layoutService,
Page page)
- Get the portal layout to use for the provided page.
The name of the layout to use can be defined as a property
in the portal, or the individual page. The page property overwrites the portal property. If no property was set, a
default layout with the name "nodesk" is assumed.
- Parameters:
layoutService - the layout service that allows access to the layoutpage - the page that hosts the markup container to render (the page, region, window,...)
- Returns:
- a
PortalLayout for the defined layout name