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

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


      StateControllerContext stateContext = context.getStateControllerContext();

      // The page navigational state we will operate on during the request
      // Either we have nothing in the request so we create a new one
      // Or we have one but we copy it as we should not modify the input state provided
      PortletPageNavigationalState pageNavigationalState = portletRequest.getPageNavigationalState();
      if (pageNavigationalState == null)
      {
         pageNavigationalState = stateContext.createPortletPageNavigationalState(true);
      }
      else
View Full Code Here


      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);
View Full Code Here

   {
      Map<String, String> queryParameters = MapAdapters.adapt(queryParameterMap);

      // The nav state provided with the request
      // Unmarshall portal navigational state if it is provided
      PortletPageNavigationalState pageNavigationalState = null;
      String context = queryParameters.get(ControllerRequestParameterNames.PAGE_NAVIGATIONAL_STATE);
      if (context != null)
      {
         byte[] bytes = Base64.decode(context, true);
         pageNavigationalState = IOTools.unserialize(serialization, SerializationFilter.COMPRESSOR, bytes);
View Full Code Here

   {

      //
      Mode mode = null;
      WindowState windowState = null;
      PortletPageNavigationalState pageNavigationalState = null;
      Map<String, String[]> publicNS = null;
      StateString portletNS = null;
      CacheLevel cacheability;

      PortletResourceRequest.Scope scope = portletResourceRequest.getScope();

      //
      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)
         {
            PortletResourceRequest.PageScope pageScope = (PortletResourceRequest.PageScope)scope;
            pageNavigationalState = pageScope.getPageNavigationalState();
            cacheability = CacheLevel.PAGE;

            //
            if (pageNavigationalState != null)
            {
               publicNS = pageNavigationalState.getPortletPublicNavigationalState(portletResourceRequest.getWindowId());
            }
         }
         else
         {
            cacheability = CacheLevel.PORTLET;
View Full Code Here

   {
      Map<String, String> queryParameters = MapAdapters.adapt(queryParameterMap);

      // The nav state provided with the request
      // Unmarshall portal navigational state if it is provided
      PortletPageNavigationalState pageNavigationalState = null;
      String context = queryParameters.get(ControllerRequestParameterNames.PAGE_NAVIGATIONAL_STATE);
      if (context != null)
      {
         byte[] bytes = Base64.decode(context, true);
         pageNavigationalState = IOTools.unserialize(serialization, SerializationFilter.COMPRESSOR, bytes);
View Full Code Here

TOP

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

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.