Package org.jboss.portal.common.util

Examples of org.jboss.portal.common.util.ParameterMap


      {
         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


      }

      //
      // Map result = Collections.EMPTY_MAP;

      ParameterMap parameterMap = new ParameterMap();

      String encodedName = null;
      CharBuffer buffer = new CharBuffer(50);

View Full Code Here

      PortletInfo info = context.portletControllerContext.getPortletInfo(portletWindowId);

      //
      if (info != null)
      {
         ParameterMap publicNavigationalState = new ParameterMap();
         for (ParameterInfo parameterInfo : info.getNavigation().getPublicParameters())
         {
            String[] parameterValue = page.get(parameterInfo.getName());

            //
            if (parameterValue != null)
            {
               String parameterId = parameterInfo.getId();

               // We clone the value here so we keep the internal state not potentially changed
               publicNavigationalState.put(parameterId, parameterValue.clone());
            }
         }

         //
         return publicNavigationalState;
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

            throw new Error(e);
         }
      }
      else
      {
         parameters = new ParameterMap();
      }
   }
View Full Code Here

   }

   /** Creates an empty parameter set. */
   private ParametersStateString()
   {
      this.parameters = new ParameterMap();
   }
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

   }

   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

TOP

Related Classes of org.jboss.portal.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.