Package org.gatein.pc.controller.state

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


   {
      //
      DataInputStream data = in instanceof DataInputStream ? (DataInputStream)in : new DataInputStream(in);

      //
      PortletPageNavigationalState defaultState = defaultSerialization.unserialize(in);

      //
      int size = data.readInt();
      Set<String> involvedPortlets = new HashSet<String>(size);
      while (size-- > 0)
View Full Code Here


      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

   {
      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, Base64.EncodingOption.USEURLSAFEENCODING);
         pageNavigationalState = IOTools.unserialize(serialization, SerializationFilter.COMPRESSOR, bytes);
View Full Code Here

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

   {

      //
      Mode mode = null;
      org.gatein.pc.api.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, Base64.EncodingOption.USEURLSAFEENCODING);
         pageNavigationalState = IOTools.unserialize(serialization, SerializationFilter.COMPRESSOR, bytes);
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, Base64.EncodingOption.USEURLSAFEENCODING);
         pageNavigationalState = IOTools.unserialize(serialization, SerializationFilter.COMPRESSOR, bytes);
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

      // The type of invocation
      String type = req.getParameter(URLParameterConstants.TYPE);

      // Process only portlet type
      // The request decoded if not null
      PortletPageNavigationalState pageNavigationalState = null;
      if (URLParameterConstants.PORTLET_TYPE.equals(type))
      {
         ControllerRequestFactory factory = new ControllerRequestFactory(context.getPageNavigationalStateSerialization());

         RequestDecoder decoder = new RequestDecoder(req);
View Full Code Here

TOP

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