|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.invocation.Invocation org.jboss.portal.core.controller.ControllerCommand org.jboss.portal.core.controller.command.PortalObjectCommand org.jboss.portal.core.controller.command.PageCommand org.jboss.portal.core.controller.command.RenderPageCommand
Render a full page.
Field Summary | |
private static java.lang.String |
HIDE
. |
private static CommandInfo |
info
. |
private PortalLayout |
layout
. |
private boolean |
personalizable
. |
private static java.lang.String |
SHOW
. |
private static java.lang.String |
WINDOW_ACCESS_DENIED
. |
private static java.lang.String |
WINDOW_ERROR
. |
private static java.lang.String |
WINDOW_INTERNAL_ERROR
. |
private static java.lang.String |
WINDOW_NOT_FOUND
. |
private static java.lang.String |
WINDOW_UNAVAILABLE
. |
private java.util.Collection |
windows
The windows to render. |
Fields inherited from class org.jboss.portal.core.controller.command.PageCommand |
page, portal |
Fields inherited from class org.jboss.portal.core.controller.command.PortalObjectCommand |
target, targetId |
Fields inherited from class org.jboss.portal.core.controller.ControllerCommand |
context, log, NAVIGATIONAL_STATE_SCOPE, PRINCIPAL_SCOPE, REQUEST_SCOPE, SESSION_SCOPE |
Fields inherited from class org.jboss.portal.common.invocation.Invocation |
EMPTY_STACK |
Constructor Summary | |
RenderPageCommand(java.lang.String pageId)
|
Method Summary | |
private void |
addModeActions(Window window,
java.util.Map actionMap,
Mode currentMode,
java.util.List supportedModes)
Create the action URLs for the allowed portlet modes of the rendered portlet window and add them to the provided actionMap. |
private void |
addStateActions(Window window,
java.util.Map actionMap,
WindowState currentWindowState,
java.util.List supportedWindowStates)
Create the action URLs for the allowed window states of the rendered portlet window and add them to the provided actionMap. |
void |
create()
initialize the command |
java.lang.String |
createUpdateNavigationalStateURL(Window window,
Mode mode,
WindowState windowState)
|
void |
enforceSecurity(PortalAuthorizationManager pam)
Enforce the security on this command using the provided portal authorization manager. |
java.lang.Object |
execute()
execute the command |
CommandInfo |
getInfo()
Get the command info (runtime info about the command) |
PortalLayout |
getLayout()
Get the layout that was determined for this request (based on portal and page properties) |
static PortalLayout |
getLayout(LayoutService layoutService,
Page page)
Get the portal layout to use for the provided page. |
private PortalTheme |
getTheme(java.lang.String themeIdString)
|
java.util.Collection |
getWindows()
Returns the modifiable list of windows. |
private static java.lang.String[] |
parseID(java.lang.String layoutIDString)
parse the provided String for '.' as a separator. |
private ModifiablePageResult |
renderFragments(ServerConfig cfg,
AttributeResolver navCtx)
Call the component invocation(s) to create the markup fragment(s) for this request Call the component / portlet invocation for each window on the page, and create a markup result with the resulting markup fragments in it |
protected MarkupResult |
renderPortletWindow(ServerConfig cfg,
Window window)
Call the component container to render the markup fragment of a window |
Methods inherited from class org.jboss.portal.core.controller.command.PageCommand |
getPage |
Methods inherited from class org.jboss.portal.core.controller.command.PortalObjectCommand |
getTarget, getTargetId, isDashboard |
Methods inherited from class org.jboss.portal.core.controller.ControllerCommand |
createContext, destroy, destroyContext, getContext, getControllerContext, rethrow |
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 |
Field Detail |
private static java.lang.String WINDOW_ACCESS_DENIED
private static java.lang.String WINDOW_UNAVAILABLE
private static java.lang.String WINDOW_ERROR
private static java.lang.String WINDOW_INTERNAL_ERROR
private static java.lang.String WINDOW_NOT_FOUND
private static java.lang.String HIDE
private static java.lang.String SHOW
private static final CommandInfo info
private java.util.Collection windows
private PortalLayout layout
private boolean personalizable
Constructor Detail |
public RenderPageCommand(java.lang.String pageId)
Method Detail |
public CommandInfo getInfo()
getInfo
in class ControllerCommand
public PortalLayout getLayout()
public java.util.Collection getWindows()
public void create() throws ControllerException
create
in class PageCommand
public void enforceSecurity(PortalAuthorizationManager pam) throws ControllerSecurityException, PortalSecurityException
PortalObjectCommand
enforceSecurity
in class PortalObjectCommand
pam
- the portal authorization manager
ControllerSecurityException
- if the access is not granted
PortalSecurityException
public java.lang.Object execute() throws ControllerException, InvocationException
execute
in class ControllerCommand
private ModifiablePageResult renderFragments(ServerConfig cfg, AttributeResolver navCtx) throws ControllerException
cfg
- the server configuration to get access to customizable error behaviournavCtx
- the navigational state context to access page and window navigational state
InvocationException
ControllerException
private PortalTheme getTheme(java.lang.String themeIdString)
public static PortalLayout getLayout(LayoutService layoutService, Page 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.
layoutService
- the layout service that allows access to the layoutpage
- the page that hosts the markup container to render (the page, region, window,...)
PortalLayout
for the defined layout nameprotected MarkupResult renderPortletWindow(ServerConfig cfg, Window window) throws ControllerException
cfg
- the server config to get information about the error behaviourwindow
- the window to render
InvocationException
ControllerException
private static java.lang.String[] parseID(java.lang.String layoutIDString)
layoutIDString
- the string to be examined
private void addStateActions(Window window, java.util.Map actionMap, WindowState currentWindowState, java.util.List supportedWindowStates)
private void addModeActions(Window window, java.util.Map actionMap, Mode currentMode, java.util.List supportedModes)
public java.lang.String createUpdateNavigationalStateURL(Window window, Mode mode, WindowState windowState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |