Examples of PortletWindowNavigationalState


Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

      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);
      }

      //
      org.gatein.pc.api.Mode mode = Mode.VIEW;
      org.gatein.pc.api.WindowState windowState = org.gatein.pc.api.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

Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

      {
         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

Examples of org.gatein.pc.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

Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

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

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

      //
      org.gatein.pc.api.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

Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

      //
      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

Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

      {
         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

Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

      {
         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

Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

      {
         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

Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

   {
      if (pageNavigationalState != null)
      {
         for (String windowId : pageNavigationalState.getPortletWindowIds())
         {
            PortletWindowNavigationalState windowNS = pageNavigationalState.getPortletWindowNavigationalState(windowId);
            if (org.gatein.pc.api.WindowState.MAXIMIZED.equals(windowNS.getWindowState()))
            {
               return windowId;
            }
         }
      }
View Full Code Here

Examples of org.gatein.pc.controller.state.PortletWindowNavigationalState

      if (portletResp != null)
      {
         if (portletResp instanceof ContentResponse)
         {
            ContentResponse fragment = (ContentResponse)portletResp;
            PortletWindowNavigationalState windowNS = null;
            if (renderResponse.getPageNavigationalState() != null)
            {
               windowNS = renderResponse.getPageNavigationalState().getPortletWindowNavigationalState(portletTag.result.getWindowDef().getWindowId());
            }
            if (windowNS == null || !windowNS.getWindowState().equals(org.gatein.pc.api.WindowState.MINIMIZED))
            {
               if (fragment.getType() != ContentResponse.TYPE_EMPTY)
               {
                  String frag;
                  if (fragment.getType() == ContentResponse.TYPE_BYTES)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.