Examples of addAttribute()


Examples of org.openid4java.message.ax.FetchRequest.addAttribute()

      String typeUri = typeUris[i];
      if (StringUtils.isNotBlank(typeUri)) {
        String alias = aliases[i];
        boolean required = httpReq.getParameter("required" + i) != null;
        int count = NumberUtils.toInt(counts[i], 1);
        fetch.addAttribute(alias, typeUri, required, count);
      }
    }
    authReq.addExtension(fetch);
  }

Examples of org.openid4java.message.ax.FetchResponse.addAttribute()

                            //userDataExt.put("email", userData.get(3));

                            FetchResponse fetchResp =
                                FetchResponse.createFetchResponse(fetchReq, userDataExt);
                            // (alternatively) manually add attribute values
                            fetchResp.addAttribute("email",
                                "http://schema.openid.net/contact/email", email);
                            response.addExtension(fetchResp);
                        }
                    }
                    else //if (ext instanceof StoreRequest)

Examples of org.openid4java.message.sreg.SRegRequest.addAttribute()

        "gender", "postcode", "country", "language", "timezone" };
    for (int i = 0, l = attributes.length; i < l; i++) {
      String attribute = attributes[i];
      String value = httpReq.getParameter(attribute);
      if (OPTIONAL_VALUE.equals(value)) {
        sregReq.addAttribute(attribute, false);
      } else if (REQUIRED_VALUE.equals(value)) {
        sregReq.addAttribute(attribute, true);
      }
    }

Examples of org.openid4java.message.sreg.SRegResponse.addAttribute()

                            Map userDataSReg = new HashMap();
                            //userData.put("email", "user@example.com");

                            SRegResponse sregResp = SRegResponse.createSRegResponse(sregReq, userDataSReg);
                            // (alternatively) manually add attribute values
                            sregResp.addAttribute("email", email);
                            response.addExtension(sregResp);
                        }
                    }
                    else
                    {

Examples of org.openmrs.Patient.addAttribute()

      demo.setBirthdate(cal.getTime());
    }
   
    for (PersonAttributeType type : Context.getPersonService().getAllPersonAttributeTypes()) {
      if (type.getFormat() != null && type.getFormat().equals("java.lang.String")) {
        demo.addAttribute(new PersonAttribute(type, "Test " + type.getName() + " Attribute"));
      }
    }
    PersonAddress addr = new PersonAddress();
    addr.setCityVillage("Rwinkwavu");
    addr.setCountyDistrict("Kayonza District");

Examples of org.openmrs.Person.addAttribute()

        Context.getAuthenticatedUser().getPerson().getUuid()).getAttribute("Health Center").getValue());
    Location location = Context.getLocationService().getLocation(userLocation);
    PersonAttribute locationAttribute = new PersonAttribute();
    locationAttribute.setAttributeType(Context.getPersonService().getPersonAttributeTypeByName("Health Center"));
    locationAttribute.setValue(location.getId().toString());
    person.addAttribute(locationAttribute);
    if (post.get("attributes") != null) {
      addAttributes(person, post);
    }
    if (post.get("addresses") != null) {
      addAddresses(person, post);

Examples of org.openmrs.Provider.addAttribute()

        ProviderAttributeType pAttribType = iter.next();
        if (pAttribType.getName().equals("isOutpatientDoctor")) {
          ProviderAttribute pAttrib = new ProviderAttribute();
          pAttrib.setValue(true);
          pAttrib.setAttributeType(pAttribType);
          provider.addAttribute(pAttrib);
          break;
        }
      }
    }
    Context.getPersonService().savePerson(person);

Examples of org.opensaml.SAMLAttributeStatement.addAttribute()

                        attribute.setValues(c);
                    } else {
                        attribute.addValue(e.getValue());
                    }
   
                    attributeStatement.addAttribute(attribute);
                }
            }

            samlAssertion.addStatement(samlAuthenticationStatement);
            samlAssertion.addCondition(samlAudienceRestrictionCondition);

Examples of org.opensolaris.opengrok.analysis.JFlexTokenizer.addAttribute()

    private String[] getTermsFor(Reader r) {
        List<String> l = new LinkedList<String>();
        JFlexTokenizer ts = (JFlexTokenizer) this.analyzer.createComponents("refs", r).getTokenStream();
        ts.yyreset(r);
        CharTermAttribute term = ts.addAttribute(CharTermAttribute.class);
        try {
            while (ts.yylex()) {
                l.add(term.toString());
            }
        } catch (IOException ex) {

Examples of org.opensolaris.opengrok.analysis.uue.UuencodeFullTokenizer.addAttribute()

     */
    @Test
    public void truncatedUuencodedFile() throws IOException {
        UuencodeFullTokenizer tokenizer = new UuencodeFullTokenizer(
                new StringReader("begin 644 test\n"));
        CharTermAttribute term = tokenizer.addAttribute(CharTermAttribute.class);

        assertTrue(tokenizer.incrementToken());
        assertEquals("begin", term.toString());
        assertTrue(tokenizer.incrementToken());
        assertEquals("644", term.toString());
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.