Package org.gatein.common.util

Examples of org.gatein.common.util.ParameterMap$ValueConverter


      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

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

   public Map<String, String[]> getParameterMap()
   {
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      if (parameters != null)
      {
         return Collections.unmodifiableMap(parameters);
View Full Code Here

      }
   }

   public Map<String, String[]> getPrivateParameterMap()
   {
      ParameterMap parameters = requestParameterMap.getPrivateParameters();

      //
      if (parameters != null)
      {
         return Collections.unmodifiableMap(parameters);
View Full Code Here

      }
   }

   public Map<String, String[]> getPublicParameterMap()
   {
      ParameterMap parameters = requestParameterMap.getPublicParameters();

      //
      if (parameters != null)
      {
         return Collections.unmodifiableMap(parameters);
View Full Code Here

      {
         publicRenderParameterNames.add(parameterInfo.getId());
      }

      //
      ParameterMap tmp = null;
      for (RuntimeOptionInfo option : portletInfo.getRuntimeOptionsInfo().values())
      {
         String name = option.getName();
         if (RuntimeOptionInfo.SUPPORTED_OPTIONS.contains(name))
         {
            if (tmp == null)
            {
               tmp = new ParameterMap(ParameterMap.AccessMode.get(true, false));
            }

            //
            String[] values = option.getValues().toArray(new String[option.getValues().size()]);
            tmp.setValues(name, values);
         }
      }

      //
      Map<String, String[]> containerRuntimeOptions;
View Full Code Here

      return resourceInvocation.getResourceId();
   }

   public Map<String, String[]> getPrivateRenderParameterMap()
   {
      ParameterMap parameters = ((ResourceRequestParameterMap)requestParameterMap).getPrivateRenderParameters();

      //
      if (parameters != null)
      {
         return Collections.unmodifiableMap(parameters);
View Full Code Here

      //
      Map<String, String[]> parameters;
      if (queryString != null && queryString.length() > 0)
      {
         ParameterMap tmp = new ParameterMap();
         tmp.putAll(QueryStringParser.getInstance().parseQueryString(queryString));
         tmp.append(preq.getParameterMap());
         parameters = tmp;
      }
      else
      {
         parameters = preq.getParameterMap();
View Full Code Here

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

      // Combine private render parameters if any
      Map<String, String[]> privateRenderParameters = safeBuildParameters(invocation.getNavigationalState());

      // The private parameters
View Full Code Here

   }

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

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

      // Build combined map
View Full Code Here

TOP

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

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.