Пример #1
0
  public String getMD5Password() {
    final UserPwd theUserPwd = UserPwdImpl.findByPseudoAndUser(this.object_login, getOwner());
    if (theUserPwd != null) {
      return theUserPwd.getPwd();
    }

    return null;
  }
Пример #2
0
  private void setObject_login(Map<String, Object> inUpdateMap, String inValue) {
    if (!this.object_login.equals(inValue)) {

      final UserPwd thePwd = UserPwdImpl.findByPseudoAndUser(this.object_login, getOwner());
      if (thePwd != null) {
        final String thePassword = thePwd.getPwd();
        thePwd.delete();
        try {
          new UserPwdImpl(getOwner().getId(), inValue, thePassword, false);
        } catch (final SQLException e) {
          VObjectImpl.LOGGER.fatal(e, e);
        }
      }

      this.object_login = inValue;
      inUpdateMap.put("object_login", this.object_login);
    }
  }