Examples of addValue()


Examples of org.apache.syncope.common.to.AttributeTO.addValue()

        // 4. try (and fail) to create another user with same (unique) values
        userTO = getSampleTO(userTO.getUsername());
        AttributeTO userIdAttr = getManadatoryAttrByName(userTO.getAttributes(), "userId");
        userIdAttr.getValues().clear();
        userIdAttr.addValue("a.b@c.com");

        SyncopeClientException sce = null;
        try {
            createUser(userTO);
        } catch (SyncopeClientCompositeErrorException e) {
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.conf.CAttr.addValue()

        userController.create(userTO, true);

        // 3. Set number of retries
        CAttr maxRetries = confDAO.find("notification.maxRetries", "5");
        maxRetries.getValues().clear();
        maxRetries.addValue("5", AttributableUtil.getInstance(AttributableType.CONFIGURATION));
        confDAO.save(maxRetries);
        confDAO.flush();

        // 4. Stop mail server to force error sending mail
        stopGreenMail();
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.membership.MAttr.addValue()

        assertNotNull(membership);

        MAttr attribute = new MAttr();
        attribute.setSchema(actualSchema);
        attribute.setOwner(membership);
        attribute.addValue("yellow", AttributableUtil.getInstance(AttributableType.MEMBERSHIP));
        membership.addAttribute(attribute);

        MAttr actualAttribute = attrDAO.save(attribute);
        assertNotNull(actualAttribute);
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.user.UAttr.addValue()

        attribute.setSchema(emailSchema);
        attribute.setOwner(user);

        Exception thrown = null;
        try {
            attribute.addValue("john.doe@gmail.com", AttributableUtil.getInstance(AttributableType.USER));
            attribute.addValue("mario.rossi@gmail.com", AttributableUtil.getInstance(AttributableType.USER));
        } catch (ValidationException e) {
            LOG.error("Unexpected exception", e);
            thrown = e;
        }
View Full Code Here

Examples of org.apache.tomcat.util.http.MimeHeaders.addValue()

           // BZ 43687
           if(!("If-Modified-Since".equalsIgnoreCase(name) ||
                (cachable && "If-None-Match".equalsIgnoreCase(name)))) {
               Iterator values = saved.getHeaderValues(name);
               while (values.hasNext()) {
                   rmh.addValue(name).setString( (String)values.next() );
               }
           }
       }
      
       request.clearLocales();
View Full Code Here

Examples of org.apache.tuscany.sca.implementation.spring.SpringConstructorArgElement.addValue()

                            constructorArg.setAutoIndex(autoConstructorIndex);
                            if (reader.getAttributeValue(null, "index") != null)
                              constructorArg.setIndex((new Integer(reader.getAttributeValue(null, "index"))).intValue());
                            if (reader.getAttributeValue(null, "value") != null) {
                              String value = reader.getAttributeValue(null, "value");
                              constructorArg.addValue(value);
                              if ((value.indexOf(".xml") != -1)) {
                                    if ((bean.getClassName().indexOf(".ClassPathXmlApplicationContext") != -1) ||
                                        (bean.getClassName().indexOf(".FileSystemXmlApplicationContext") != -1)) {
                                        XMLStreamReader creader = getApplicationContextReader(resolver, value);
                                        // Read the context definition for the constructor-arg resources
View Full Code Here

Examples of org.apache.wicket.request.target.coding.WebRequestEncoder.addValue()

       *
       * The reason for this is that when redirecting to these bookmarkable pages, we need to
       * have the url encoded correctly because we can't rely on the browser to interpret the
       * unencoded url correctly.
       */
      encoder.addValue(WebRequestCodingStrategy.BOOKMARKABLE_PAGE_PARAMETER_NAME,
        pageMapName + Component.PATH_SEPARATOR + pageClass.getName());
    }

    // Get page parameters
    final PageParameters parameters = requestTarget.getPageParameters();
View Full Code Here

Examples of org.beryl.gui.model.ListDataModel.addValue()

    List list1 = (List) frame.getWidget("List1");
    List list2 = (List) frame.getWidget("List2");

    ListDataModel strings = new ListDataModel();
    for (int i = 1; i <= 10; i++)
      strings.addValue("Item " + i);

    list1.setListDataModel(strings);
    list2.setListDataModel(new ListDataModel());

    dataModel.setValue("list1.value", new Object[] {
View Full Code Here

Examples of org.chromium.sdk.util.DestructingGuard.addValue()

              DebugPlugin.getDefault().getLaunchManager().removeLaunch(launch);
            }
          }
        };

        destructingGuard.addValue(lauchDestructor);

        WorkspaceBridge.Factory bridgeFactory =
            new VProjectWorkspaceBridge.FactoryImpl(projectNameBase);

        final DebugTargetImpl target =
View Full Code Here

Examples of org.collectd.api.ValueList.addValue()

    vl.setPluginInstance (plugin_instance);
    vl.setType ("memory");

    if (mem_init >= 0)
    {
      vl.addValue (mem_init);
      vl.setTypeInstance ("init");
      Collectd.dispatchValues (vl);
      vl.clearValues ();
    }
View Full Code Here
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.