Examples of EmailAddress


Examples of javax.xml.registry.infomodel.EmailAddress

      emailarr = new Email[ec.size()];

            Iterator iter = ec.iterator();
      int emailarrPos = 0;
      while (iter.hasNext()) {
                EmailAddress ea = (EmailAddress) iter.next();
        Email email = objectFactory.createEmail();
       
        if (ea.getAddress() != null) {
          email.setValue(ea.getAddress());
        }
        // email.setText( ea.getAddress() );
       
        if (ea.getType() != null) {
                email.setUseType(ea.getType());
            }

        emailarr[emailarrPos] = email;
        emailarrPos++;
      }
View Full Code Here

Examples of javax.xml.registry.infomodel.EmailAddress

                STREET, CITY, STATE, COUNTRY, POSTAL_CODE, "");

            Collection<PostalAddress> postalAddresses = new ArrayList<PostalAddress>();
            postalAddresses.add(address);
            Collection<EmailAddress> emailAddresses = new ArrayList<EmailAddress>();
            EmailAddress emailAddress = blm.createEmailAddress(EMAIL);
            emailAddresses.add(emailAddress);

            Collection<TelephoneNumber> numbers = new ArrayList<TelephoneNumber>();
            numbers.add(telephoneNumber);
            user.setPersonName(personName);
View Full Code Here

Examples of javax.xml.registry.infomodel.EmailAddress

            "Uddi Drive", "Apache Town","CA", "USA", "00000-1111", "");
       
        Collection<PostalAddress> postalAddresses = new ArrayList<PostalAddress>();
        postalAddresses.add(address);
        Collection<EmailAddress> emailAddresses = new ArrayList<EmailAddress>();
        EmailAddress emailAddress = blm.createEmailAddress("jaxr@apache.org");
        emailAddresses.add(emailAddress);
       
        Collection<TelephoneNumber> numbers = new ArrayList<TelephoneNumber>();
        numbers.add(telephoneNumber);
        user.setPersonName(personName);
View Full Code Here

Examples of jodd.mail.EmailAddress

  public boolean isValid(ValidationConstraintContext vcc, Object value) {
    if (value == null) {
      return true;
    }

    EmailAddress emailAddress = new EmailAddress(value.toString());

    return emailAddress.isValid();
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.EmailAddress

    if (emailAddressString == null) {
      emailAddressString = configuration.getProperty("ip"
          + inv.getRequest().getRemoteAddr().replace(".", "-"));
    }
    if (emailAddressString != null) {
      user = User.findUserByEmail(new EmailAddress(emailAddressString
          .trim()));
    }
    return user;
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.EmailAddress

  public static void generalImport(String action, String[] values,
      Element csvElement) throws HttpException {
    if (action.equals("insert")) {
      String emailAddressStr = GeneralImport.addField(csvElement,
          "Email Address", values, 0);
      EmailAddress emailAddress = new EmailAddress(emailAddressStr);
      String password = GeneralImport.addField(csvElement, "Password",
          values, 1);
      String passwordDigest = GeneralImport.addField(csvElement,
          "Password Digest", values, 2);
      String userRoleCode = GeneralImport.addField(csvElement,
View Full Code Here

Examples of net.sf.chellow.monad.types.EmailAddress

      }
      setPasswordDigest(digest(newPassword));
      Hiber.commit();
      inv.sendOk(document("New password set successfully."));
    } else {
      EmailAddress emailAddress = inv.getEmailAddress("email-address");
      Long userRoleId = inv.getLong("user-role-id");
      UserRole userRole = UserRole.getUserRole(userRoleId);
      if (!inv.isValid()) {
        throw new UserException(document());
      }
View Full Code Here

Examples of net.sf.chellow.monad.types.EmailAddress

      return null;
      // throw new BadRequestException(
      // "The Authorisation header must contain a base64 encoded string
      // consisting of a username and password separated by a ':'.");
    }
    User user = Chellow.USERS_INSTANCE.findUser(new EmailAddress(
        usernameAndPassword[0]));
    if (user == null) {
      return null;
    } else if (!user.getPasswordDigest().equals(
        User.digest(usernameAndPassword[1]))) {
View Full Code Here

Examples of net.sf.chellow.monad.types.EmailAddress

  public MonadUri getEditUri() throws HttpException {
    return Chellow.ROOT_URI.resolve(getUriId()).append("/");
  }

  public void httpPost(Invocation inv) throws HttpException {
    EmailAddress emailAddress = inv.getEmailAddress("email-address");
    String password = inv.getString("password");
    Long userRoleId = inv.getLong("user-role-id");

    if (!inv.isValid()) {
      throw new UserException(document());
View Full Code Here

Examples of net.wimpi.pim.contact.model.EmailAddress

                if (!isGroup) {
                    Communications communications = contact.getCommunications();
                    if (UtilValidate.isNotEmpty(communications)) {
                        for (Iterator<?> iter = communications.getEmailAddresses(); iter.hasNext();) {
                            EmailAddress emailAddress = (EmailAddressImpl) iter.next();
                            if (communications.isPreferredEmailAddress(emailAddress)) {
                                email = emailAddress.getAddress();
                                break;
                            } else {
                                email = emailAddress.getAddress();
                                break;
                            }
                        }
                        if (UtilValidate.isNotEmpty(email)) {
                            serviceCtx.put("emailAddress", email);
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.