Package org.apache.openmeetings.db.entity.user

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


      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

      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

  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

    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);
    return u;
  }

  public User createUser(int rnd) throws Exception {
View Full Code Here

    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

  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

      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

      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

  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

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.