Examples of addParameter()


Examples of org.jasig.portal.portlet.om.IPortletDefinition.addParameter()

      // Make parameters (NB:  these are different from preferences) in the
      // portletDef reflect the state of the form, in case any have changed.
    for (String key : form.getParameters().keySet()) {
      String value = form.getParameters().get(key).getValue();
      if (!StringUtils.isBlank(value)) {
          portletDef.addParameter(key, value);
      }
    }
      portletDef.addParameter(IPortletDefinition.EDITABLE_PARAM, Boolean.toString(form.isEditable()));
      portletDef.addParameter(IPortletDefinition.CONFIGURABLE_PARAM, Boolean.toString(form.isConfigurable()));
      portletDef.addParameter(IPortletDefinition.HAS_HELP_PARAM, Boolean.toString(form.isHasHelp()));

Examples of org.jasig.portal.url.IPortalUrlBuilder.addParameter()

                    @SuppressWarnings("unchecked")
                    Enumeration<String> e = request.getParameterNames();
                    while (e.hasMoreElements()) {
                        String paramName = e.nextElement();
                        if (!paramName.equals("uP_fname")) {
                            urlBuilder.addParameter(paramName, request.getParameterValues(paramName));
                        }
                    }
                   
                    redirectTarget = urlBuilder.getUrlString();
                }

Examples of org.jasig.portal.url.IPortletUrlBuilder.addParameter()

        Locale locale = getCurrentUserLocale(request);

        IPortalUrlBuilder builder = urlProvider.getPortalUrlBuilderByPortletFName(request, PORTLET_FNAME_LOGIN, UrlType.RENDER);
        IPortletUrlBuilder portletUrlBuilder = builder.getTargetedPortletUrlBuilder();
        portletUrlBuilder.addParameter("username", account.getName());
        portletUrlBuilder.addParameter("loginToken", (String) account.getAttributeValue("loginToken"));
        portletUrlBuilder.setPortletMode(PortletMode.VIEW);
        portletUrlBuilder.setWindowState(WindowState.MAXIMIZED);

        try {

Examples of org.jboss.aesh.cl.ParserBuilder.addParameter()

            {
               // ignored for now
            }
         }
      }
      builder.addParameter(parameter);
      return builder.generateParser();
   }

   @SuppressWarnings("unchecked")
   public static void populateUIInputs(CommandLine commandLine,

Examples of org.jboss.forge.scaffold.plugins.meta.model.TMethod.addParameter()

      TMethod getterMethod = new TMethod(classType, RenderUtil.getGetterName(type, name), type, Modifier.PUBLIC);
      getterMethod.setMethodContents("return this." + name + ";\n");
      classType.getMethods().add(getterMethod);

      TMethod setterMethod = new TMethod(classType, RenderUtil.getSetterName(name), type, Modifier.PUBLIC);
      setterMethod.addParameter(name, type, Modifier.FINAL);
      setterMethod.setMethodContents("this." + name + " = " + name + ";\n");
      classType.getMethods().add(setterMethod);
   }

   public String render()

Examples of org.jboss.portletbridge.context.PortalActionURL.addParameter()

   * @return
   */
  private String encodeModeParam(String mode, String viewId) {
    try {
      PortalActionURL viewIdUrl = new PortalActionURL(viewId);
      viewIdUrl.addParameter(Bridge.PORTLET_MODE_PARAMETER, mode);
      return viewIdUrl.toString();
    } catch (MalformedURLException e) {
      throw new BridgeException("Malformed ViewId",e);
    }
  }

Examples of org.jboss.seam.mock.EnhancedMockHttpServletRequest.addParameter()

    */
   @Test(expectedExceptions = IllegalArgumentException.class )
   public void testGetCallAction()
   {
      EnhancedMockHttpServletRequest request = new EnhancedMockHttpServletRequest();
      request.addParameter("actionOutcome", "#{variable}");
      FacesContext.getCurrentInstance().getExternalContext().setRequest(request);
      Pages.instance().preRender(FacesContext.getCurrentInstance());     
   }
  
   @Test(expectedExceptions = IllegalArgumentException.class )

Examples of org.jboss.seam.ui.util.UrlBuilder.addParameter()

{
   @Test
   public void testBaseUrlAlreadyHasParams() throws UnsupportedEncodingException
   {
      UrlBuilder url = new UrlBuilder("/someurl?arg1=a", "", "UTF8");
      url.addParameter("foo", "bar");

      String encodedUrl = url.getEncodedUrl();
     
      assert "/someurl?arg1=a&foo=bar".equals(encodedUrl);
   }

Examples of org.jboss.seam.ui.util.ViewUrlBuilder.addParameter()

      for (Object child : getChildren())
      {
         if (child instanceof UIParameter)
         {
            usedParameters.add(((UIParameter) child).getName());
            url.addParameter((UIParameter) child);
         }
      }

      if (viewId != null)
      {

Examples of org.jboss.ws.core.jaxrpc.client.CallImpl.addParameter()

      call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS);

      // Add a bound header to the call
      CallImpl mycall = (CallImpl)call;
      QName xmlName = new QName(HEADER_NAMESPACE_URI, "headerMsg");
      mycall.addParameter(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.IN, true);

      Object retObj = call.invoke(new Object[]{"Hello world!", "IN header message"});
      assertNull(retObj);
   }
TOP
Copyright © 2018 www.massapi.com. 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.