Package org.jboss.portal.portlet.controller.state

Examples of org.jboss.portal.portlet.controller.state.PortletWindowNavigationalState


   private PortletInvocationResponse deliverEvent(
      PortletControllerContext context, PortletWindowEvent event,
      PortletPageNavigationalState pageNavigationalState,
      List<Cookie> requestCookies) throws PortletInvokerException
   {
      PortletWindowNavigationalState windowNS = pageNavigationalState.getPortletWindowNavigationalState(event.getWindowId());

      //
      if (windowNS == null)
      {
         windowNS = new PortletWindowNavigationalState();
      }

      //
      Map<String, String[]> publicNS = pageNavigationalState.getPortletPublicNavigationalState(event.getWindowId());

      //
      PortletInvocationContext portletInvocationContext = context.createPortletInvocationContext(event.getWindowId(), pageNavigationalState);
      EventInvocation eventInvocation = new EventInvocation(portletInvocationContext);

      //
      eventInvocation.setMode(windowNS.getMode());
      eventInvocation.setWindowState(windowNS.getWindowState());
      eventInvocation.setNavigationalState(windowNS.getPortletNavigationalState());
      eventInvocation.setPublicNavigationalState(publicNS);
      eventInvocation.setName(event.getName());
      eventInvocation.setPayload(event.getPayload());

      //
View Full Code Here


      String windowId,
      UpdateNavigationalStateResponse update,
      PortletPageNavigationalState pageNavigationalState)
      throws PortletInvokerException
   {
      PortletWindowNavigationalState windowNS = pageNavigationalState.getPortletWindowNavigationalState(windowId);

      //
      if (windowNS == null)
      {
         windowNS = new PortletWindowNavigationalState();
      }

      //
      Mode mode = windowNS.getMode();
      if (update.getMode() != null)
      {
         mode = update.getMode();
      }
      WindowState windowState = windowNS.getWindowState();
      if (update.getWindowState() != null)
      {
         windowState = update.getWindowState();
      }
      StateString portletNS = windowNS.getPortletNavigationalState();
      if (update.getNavigationalState() != null)
      {
         portletNS = update.getNavigationalState();
      }
      windowNS = new PortletWindowNavigationalState(portletNS, mode, windowState);
      pageNavigationalState.setPortletWindowNavigationalState(windowId, windowNS);

      // Now update shared state scoped at page
      Map<String, String[]> publicNS = update.getPublicNavigationalStateUpdates();
      if (publicNS != null)
View Full Code Here

      {
         navigationalState = StateString.create(navigationalStateString);
      }

      //
      PortletWindowNavigationalState windowNavigationalState = new PortletWindowNavigationalState(navigationalState, mode, windowState);

      //
      String phase = queryParameters.get(ControllerRequestParameterNames.LIFECYCLE_PHASE);
      if (ControllerRequestParameterNames.RESOURCE_PHASE.equals(phase))
      {
View Full Code Here

      //
      if (scope instanceof PortletResourceRequest.PortletScope)
      {
         PortletResourceRequest.PortletScope portletScope = (PortletResourceRequest.PortletScope)scope;
         PortletWindowNavigationalState navigationalState = portletScope.getWindowNavigationalState();

         //
         if (navigationalState != null)
         {
            mode = navigationalState.getMode();
            windowState = navigationalState.getWindowState();
            portletNS = navigationalState.getPortletNavigationalState();
         }

         //
         if (scope instanceof PortletResourceRequest.PageScope)
         {
View Full Code Here

      PortletControllerContext controllerContext,
      List<Cookie> cookies,
      PortletPageNavigationalState pageNavigationalState,
      String windowId) throws PortletInvokerException
   {
      PortletWindowNavigationalState windowNS = null;
      if (pageNavigationalState != null)
      {
         windowNS = pageNavigationalState.getPortletWindowNavigationalState(windowId);
      }

      //
      Map<String, String[]> publicNS = null;
      if (pageNavigationalState != null)
      {
         publicNS = pageNavigationalState.getPortletPublicNavigationalState(windowId);
      }

      //
      Mode mode = Mode.VIEW;
      WindowState windowState = WindowState.NORMAL;
      StateString portletNS = null;

      //
      if (windowNS != null)
      {
         if (windowNS.getMode() != null)
         {
            mode = windowNS.getMode();
         }
         if (windowNS.getWindowState() != null)
         {
            windowState = windowNS.getWindowState();
         }
         if (windowNS.getPortletNavigationalState() != null)
         {
            portletNS = windowNS.getPortletNavigationalState();
         }
      }

      //
      PortletInvocationContext renderContext = controllerContext.createPortletInvocationContext(windowId, pageNavigationalState);
View Full Code Here

      {
         navigationalState = ParametersStateString.create(navigationalStateString);
      }

      //
      PortletWindowNavigationalState windowNavigationalState = new PortletWindowNavigationalState(navigationalState, mode, windowState);

      //
      String phase = queryParameters.get(ControllerRequestParameterNames.LIFECYCLE_PHASE);
      if (ControllerRequestParameterNames.RESOURCE_PHASE.equals(phase))
      {
View Full Code Here

TOP

Related Classes of org.jboss.portal.portlet.controller.state.PortletWindowNavigationalState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.