Examples of updatePassword()


Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

    User u = new User();
    // add user
    u.setFirstname("firstname" + rnd);
    u.setLastname("lastname" + rnd);
    u.setLogin("login" + rnd);
    u.updatePassword(configurationDao, "pass" + rnd);
    u.setLanguage_id(1L);
    Long user_id = userManager.addUser(u);
    assertTrue("Cann't add user", user_id > 0);
    u = userManager.getUserByIdAndDeleted(user_id);
    assertNotNull("User should not be null", u);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

  public User update(User user, String password, long updatedBy) throws NoSuchAlgorithmException {
    User u = update(user, updatedBy);
    if (password != null && !password.isEmpty()) {
      //OpenJPA is not allowing to set fields not being fetched before
      User u1 = get(u.getUser_id(), true);
      u1.updatePassword(cfgDao, password);
      update(u1, updatedBy);
    }
    return u;
  }
 
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

      if (language_id != 0) {
        users.setLanguage_id(language_id);
      } else {
        users.setLanguage_id(null);
      }
      users.updatePassword(configurationDao, userpass);
      users.setRegdate(new Date());
      users.setDeleted(false);
     
      //new user add organizations without checks
      if (orgIds != null) {
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

      if (language_id != 0) {
        users.setLanguage_id(new Long(language_id));
      } else {
        users.setLanguage_id(null);
      }
      users.updatePassword(configurationDao, userpass, emptyPass);
      users.setRegdate(new Date());
      users.setDeleted(false);

      em.persist(users);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

  public User update(User user, String password, long updatedBy) throws NoSuchAlgorithmException {
    User u = update(user, updatedBy);
    if (password != null && !password.isEmpty()) {
      //OpenJPA is not allowing to set fields not being fetched before
      User u1 = get(u.getUser_id(), true);
      u1.updatePassword(cfgDao, password);
      update(u1, updatedBy);
    }
    return u;
  }
 
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

    u.setShowContactDataToContacts(showContactDataToContacts);

    // this is needed cause the language is not a needed data at registering
    u.setLanguage_id(language_id != 0 ? language_id : null);
    if (!Strings.isEmpty(userpass)) {
      u.updatePassword(cfgDao, userpass);
    }
    u.setRegdate(new Date());
    u.setDeleted(false);
    u.setPictureuri(pictureuri);
    u.setOrganisation_users(orgList);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

            u.setAdresses(new Address());
            u.setLanguage_id(cfgDao.getConfValue(CONFIG_DEFAUT_LANG_KEY, Long.class, "1"));
            u.setSalutations_id(1L);
          }
          if ("true".equals(config.getProperty(CONFIGKEY_LDAP_SYNC_PASSWD_OM, ""))) {
            u.updatePassword(cfgDao, passwd);
          }
          u.setLastname(getAttr(config, entry, CONFIGKEY_LDAP_KEY_LASTNAME, LDAP_KEY_LASTNAME));
          u.setFirstname(getAttr(config, entry, CONFIGKEY_LDAP_KEY_FIRSTNAME, LDAP_KEY_FIRSTNAME));
          u.getAdresses().setEmail(getAttr(config, entry, CONFIGKEY_LDAP_KEY_MAIL, LDAP_KEY_MAIL));
          u.getAdresses().setStreet(getAttr(config, entry, CONFIGKEY_LDAP_KEY_STREET, LDAP_KEY_STREET));
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

  public User update(User user, String password, long updatedBy) throws NoSuchAlgorithmException {
    User u = update(user, updatedBy);
    if (password != null && !password.isEmpty()) {
      //OpenJPA is not allowing to set fields not being fetched before
      User u1 = get(u.getUser_id(), true);
      u1.updatePassword(cfgDao, password);
      update(u1, updatedBy);
    }
    return u;
  }
 
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

      if (language_id != 0) {
        users.setLanguage_id(language_id);
      } else {
        users.setLanguage_id(null);
      }
      users.updatePassword(configurationDao, userpass);
      users.setRegdate(new Date());
      users.setDeleted(false);
     
      //new user add organizations without checks
      if (orgIds != null) {
View Full Code Here

Examples of org.apache.openmeetings.db.entity.user.User.updatePassword()

      if (language_id != 0) {
        users.setLanguage_id(new Long(language_id));
      } else {
        users.setLanguage_id(null);
      }
      users.updatePassword(configurationDao, userpass, emptyPass);
      users.setRegdate(new Date());
      users.setDeleted(false);

      em.persist(users);
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.