当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
PageNavigationInterceptor - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.core.aspects.controller
Class PageNavigationInterceptor
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.server.impl.invocation.JBossInterceptor
org.jboss.portal.core.controller.ControllerInterceptor
org.jboss.portal.core.aspects.controller.PageNavigationInterceptor
- All Implemented Interfaces:
- Interceptor, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class PageNavigationInterceptor
- extends ControllerInterceptor
Ensure that the page navigational state holder is present.
- Version:
- $Revision: 5448 $
- Author:
- Martin Holzner
Field Summary |
private static org.apache.log4j.Logger |
log
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary |
private static WindowContext |
createWindowContext(Window window)
Create a window context for the given window |
private static java.util.Map |
createWindowContextMap(Page page)
Create a Map of WindowContext instances, keyed by window id , of all portlet windows on the requested page |
private static PageNavigationalState |
ensurePageNavigationalState(LayoutService layoutService,
AttributeResolver navCtx,
ServerInvocation sinv,
Page page)
|
private static PortalLayout |
getLayout(LayoutService layoutService,
Page page)
|
private static LayoutStrategy |
getLayoutStrategy(Page page,
PortalLayout layout,
ServerInvocation sinv)
|
private static java.lang.String |
getStrategyNameFromProperties(java.util.Map properties)
|
private static void |
handleExcludedPortlets(PageNavigationalState pageNavState,
StrategyResponse strategyResponse)
look for excluded portlets for this request, and only propagate the allowed ones to the page response |
private static void |
handleLayoutAndState(AttributeResolver navCtx,
PageNavigationalState pageNavState,
StrategyResponse strategyResponse,
PortalLayout layout)
|
private static void |
handlePortletModeChanges(AttributeResolver navCtx,
PageNavigationalState pageNavState,
StrategyResponse strategyResponse)
|
private static void |
handleWindowStateChanges(AttributeResolver navCtx,
PageNavigationalState pageNavState,
StrategyResponse strategyResponse)
look for changed window states and portlet modes, and update the navigational state of the portlet instance |
java.lang.Object |
invoke(ControllerCommand cmd)
|
private static void |
processResponse(AttributeResolver navCtx,
PageNavigationalState pageNavState,
StrategyResponse strategyResponse,
PortalLayout layout)
|
static void |
updatePageNavigationalState(LayoutService layoutService,
ControllerContext cmdContext,
ServerInvocation sinv,
Portal portal,
Page page,
Window window,
Mode mode,
WindowState windowState)
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.log4j.Logger log
PageNavigationInterceptor
public PageNavigationInterceptor()
invoke
public java.lang.Object invoke(ControllerCommand cmd)
throws java.lang.Exception,
InvocationException
- Specified by:
invoke
in class ControllerInterceptor
- Throws:
java.lang.Exception
InvocationException
updatePageNavigationalState
public static void updatePageNavigationalState(LayoutService layoutService,
ControllerContext cmdContext,
ServerInvocation sinv,
Portal portal,
Page page,
Window window,
Mode mode,
WindowState windowState)
throws StrategyException
- Throws:
StrategyException
getLayoutStrategy
private static LayoutStrategy getLayoutStrategy(Page page,
PortalLayout layout,
ServerInvocation sinv)
getLayout
private static PortalLayout getLayout(LayoutService layoutService,
Page page)
processResponse
private static void processResponse(AttributeResolver navCtx,
PageNavigationalState pageNavState,
StrategyResponse strategyResponse,
PortalLayout layout)
ensurePageNavigationalState
private static PageNavigationalState ensurePageNavigationalState(LayoutService layoutService,
AttributeResolver navCtx,
ServerInvocation sinv,
Page page)
throws StrategyException
- Throws:
StrategyException
createWindowContextMap
private static java.util.Map createWindowContextMap(Page page)
- Create a Map of WindowContext instances, keyed by window id , of all portlet windows on the requested page
- Parameters:
page
- the requested page
- Returns:
- a Map of WindowID to WindowContext
createWindowContext
private static WindowContext createWindowContext(Window window)
- Create a window context for the given window
- Parameters:
window
- the window to create the context for
- Returns:
- a new WindowContext
- See Also:
WindowContext
getStrategyNameFromProperties
private static java.lang.String getStrategyNameFromProperties(java.util.Map properties)
handleLayoutAndState
private static void handleLayoutAndState(AttributeResolver navCtx,
PageNavigationalState pageNavState,
StrategyResponse strategyResponse,
PortalLayout layout)
handleWindowStateChanges
private static void handleWindowStateChanges(AttributeResolver navCtx,
PageNavigationalState pageNavState,
StrategyResponse strategyResponse)
- look for changed window states and portlet modes, and update the navigational state of the portlet instance
- Parameters:
strategyResponse
-
handlePortletModeChanges
private static void handlePortletModeChanges(AttributeResolver navCtx,
PageNavigationalState pageNavState,
StrategyResponse strategyResponse)
handleExcludedPortlets
private static void handleExcludedPortlets(PageNavigationalState pageNavState,
StrategyResponse strategyResponse)
- look for excluded portlets for this request, and only propagate the allowed ones to the page response
- Parameters:
strategyResponse
-