Package org.gatein.common.util

Examples of org.gatein.common.util.ParameterMap


   }

   public static PortletRequestParameterMap create(NavigationInfo navigationInfo, RenderInvocation context)
   {
      // Build public parameters
      ParameterMap publicParameters = safeBuildPublicParameters(navigationInfo, context.getPublicNavigationalState());

      // Get render parameters
      Map<String, String[]> privateParameters = safeBuildParameters(context.getNavigationalState());

      // Build combined map
View Full Code Here


    * - getPublicParameterMap() : public render parameter
    */
   public static PortletRequestParameterMap create(NavigationInfo navigationInfo, ActionInvocation invocation)
   {
      // Build public parameters
      ParameterMap publicParameters = safeBuildPublicParameters(navigationInfo, invocation.getPublicNavigationalState());

      // The private parameters
      Map<String, String[]> privateParameters = safeBuildParameters(invocation.getInteractionState());

      // Combine form if we have one
View Full Code Here

   protected static ParameterMap safeBuildPublicParameters(NavigationInfo navigationInfo, Map<String, String[]> publicNavigationalParameters)
   {
      if (publicNavigationalParameters != null)
      {
         // Clone the public navigational state with the copy mode
         ParameterMap publicParameters = ParameterMap.clone(publicNavigationalParameters);

         // Remove any parameter that would have been sent by the producer by mistake
         for (Iterator<String> i = publicParameters.keySet().iterator(); i.hasNext();)
         {
            String name = i.next();
            if (navigationInfo.getPublicParameter(name) == null)
            {
               i.remove();
View Full Code Here

   {
      if (publicParameters != null)
      {
         if (privateParameters != null)
         {
            ParameterMap parameters = ParameterMap.clone(privateParameters);
            parameters.append(publicParameters);
            return parameters;
         }
         else
         {
            return publicParameters;
View Full Code Here

               {
                  useEntry = publicNavigationalState.size() == 0;
               }
               else
               {
                  ParameterMap publicPM = ParameterMap.wrap(publicNavigationalState);
                  ParameterMap entryPM = ParameterMap.wrap(entryPublicNavigationalState);
                  useEntry = publicPM.equals(entryPM);
               }
            }

            // Then check window state equality
View Full Code Here

            if (queryParams != null) {
                queryParams.remove(parameterName);
            }
        } else {
            if (queryParams == null) {
                queryParams = new ParameterMap(ACCES_MODE);
            }
            queryParams.setValue(parameterName, parameterValue);
        }
    }
View Full Code Here

            if (queryParams != null) {
                queryParams.remove(parameterName);
            }
        } else {
            if (queryParams == null) {
                queryParams = new ParameterMap(ACCES_MODE);
            }
            queryParams.setValues(parameterName, parameterValues);
        }
    }
View Full Code Here

      {
         throw new IllegalArgumentException("Name should not be null");
      }

      //
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      return parameters != null ? parameters.getValue(name) : null;
   }
View Full Code Here

      return parameters != null ? parameters.getValue(name) : null;
   }

   public Enumeration<String> getParameterNames()
   {
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      return parameters != null ? Collections.enumeration(parameters.keySet()) : (Enumeration<String>)Tools.EMPTY_ENUMERATION;
   }
View Full Code Here

      {
         throw new IllegalArgumentException("Name shoudl not be null");
      }

      //
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      return parameters != null ? parameters.getValues(name) : null;
   }
View Full Code Here

TOP

Related Classes of org.gatein.common.util.ParameterMap

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.