Examples of PortletActionRequest


Examples of org.gatein.pc.controller.request.PortletActionRequest

         //
         return updateNavigationalState;
      }
      else
      {
         PortletActionRequest portletActionRequest = (PortletActionRequest)portletRequest;

         //
         PortletPageNavigationalState pageNavigationalState = portletActionRequest.getPageNavigationalState();

         //
         org.gatein.pc.api.Mode mode = portletActionRequest.getWindowNavigationalState().getMode();
         if (mode == null)
         {
            mode = org.gatein.pc.api.Mode.VIEW;
         }

         //
         WindowState windowState = portletActionRequest.getWindowNavigationalState().getWindowState();
         if (windowState == null)
         {
            windowState = WindowState.NORMAL;
         }

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

         PortletInvocationContext portletInvocationContext = context.createPortletInvocationContext(portletRequest.getWindowId(), pageNavigationalState);
         ActionInvocation actionInvocation = new ActionInvocation(portletInvocationContext);

         //
         actionInvocation.setMode(mode);
         actionInvocation.setWindowState(windowState);
         actionInvocation.setNavigationalState(portletActionRequest.getWindowNavigationalState().getPortletNavigationalState());
         actionInvocation.setPublicNavigationalState(publicNS);
         actionInvocation.setInteractionState(portletActionRequest.getInteractionState());
         actionInvocation.setForm(portletActionRequest.getBodyParameters() != null ? ParameterMap.clone(portletActionRequest.getBodyParameters()) : null);

         //
         return context.invoke(actionInvocation);
      }
   }
View Full Code Here

Examples of org.gatein.pc.controller.request.PortletActionRequest

         if (ControllerRequestParameterNames.ACTION_PHASE.equals(phase))
         {
            StateString interactionState = StateString.create(queryParameters.get(ControllerRequestParameterNames.INTERACTION_STATE));

            //
            return new PortletActionRequest(
               windowId,
               interactionState,
               formParameterMap,
               windowNavigationalState,
               pageNavigationalState);
View Full Code Here

Examples of org.gatein.pc.controller.request.PortletActionRequest

         if (ControllerRequestParameterNames.ACTION_PHASE.equals(phase))
         {
            StateString interactionState = StateString.create(queryParameters.get(ControllerRequestParameterNames.INTERACTION_STATE));

            //
            return new PortletActionRequest(
               windowId,
               interactionState,
               formParameterMap,
               windowNavigationalState,
               pageNavigationalState);
View Full Code Here

Examples of org.gatein.pc.controller.request.PortletActionRequest

         if (ControllerRequestParameterNames.ACTION_PHASE.equals(phase))
         {
            StateString interactionState = StateString.create(queryParameters.get(ControllerRequestParameterNames.INTERACTION_STATE));

            //
            return new PortletActionRequest(
               windowId,
               interactionState,
               formParameterMap,
               windowNavigationalState,
               pageNavigationalState);
View Full Code Here

Examples of org.gatein.pc.controller.request.PortletActionRequest

         if (ControllerRequestParameterNames.ACTION_PHASE.equals(phase))
         {
            StateString interactionState = StateString.create(queryParameters.get(ControllerRequestParameterNames.INTERACTION_STATE));

            //
            return new PortletActionRequest(
               windowId,
               interactionState,
               formParameterMap,
               windowNavigationalState,
               pageNavigationalState);
View Full Code Here

Examples of org.gatein.pc.controller.request.PortletActionRequest

         if (ControllerRequestParameterNames.ACTION_PHASE.equals(phase))
         {
            StateString interactionState = StateString.create(queryParameters.get(ControllerRequestParameterNames.INTERACTION_STATE));

            //
            return new PortletActionRequest(
               windowId,
               interactionState,
               formParameterMap,
               windowNavigationalState,
               pageNavigationalState);
View Full Code Here

Examples of org.jboss.portal.portlet.controller.request.PortletActionRequest

         //
         return updateNavigationalState;
      }
      else
      {
         PortletActionRequest portletActionRequest = (PortletActionRequest)portletRequest;

         //
         PortletPageNavigationalState pageNavigationalState = portletActionRequest.getPageNavigationalState();

         //
         Mode mode = portletActionRequest.getWindowNavigationalState().getMode();
         if (mode == null)
         {
            mode = Mode.VIEW;
         }

         //
         WindowState windowState = portletActionRequest.getWindowNavigationalState().getWindowState();
         if (windowState == null)
         {
            windowState = WindowState.NORMAL;
         }

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

         PortletInvocationContext portletInvocationContext = context.createPortletInvocationContext(portletRequest.getWindowId(), pageNavigationalState);
         ActionInvocation actionInvocation = new ActionInvocation(portletInvocationContext);

         //
         actionInvocation.setMode(mode);
         actionInvocation.setWindowState(windowState);
         actionInvocation.setNavigationalState(portletActionRequest.getWindowNavigationalState().getPortletNavigationalState());
         actionInvocation.setPublicNavigationalState(publicNS);
         actionInvocation.setInteractionState(portletActionRequest.getInteractionState());
         actionInvocation.setForm(portletActionRequest.getBodyParameters() != null ? ParameterMap.clone(portletActionRequest.getBodyParameters()) : null);

         //
         return context.invoke(actionInvocation);
      }
   }
View Full Code Here

Examples of org.jboss.portal.portlet.controller.request.PortletActionRequest

         if (ControllerRequestParameterNames.ACTION_PHASE.equals(phase))
         {
            StateString interactionState = StateString.create(queryParameters.get(ControllerRequestParameterNames.INTERACTION_STATE));

            //
            return new PortletActionRequest(
               windowId,
               interactionState,
               formParameterMap,
               windowNavigationalState,
               pageNavigationalState);
View Full Code Here

Examples of org.jboss.portal.portlet.controller.request.PortletActionRequest

         if (ControllerRequestParameterNames.ACTION_PHASE.equals(phase))
         {
            StateString interactionState = ParametersStateString.create(queryParameters.get(ControllerRequestParameterNames.INTERACTION_STATE));

            //
            return new PortletActionRequest(
               windowId,
               interactionState,
               formParameterMap,
               windowNavigationalState,
               pageNavigationalState);
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.