Пример #1
0
  public void fillUserDTO(final UserDTO userDTO) {

    if (mode == FormUtils.Mode.NEW) userDTO.setSubscriptionDate(new Date());

    userDTO.setFirstName(getValueAsString("first_name"));
    userDTO.setName(getValueAsString("name"));
    userDTO.setEmail(getValueAsString("email"));
    userDTO.setLogin(getValueAsString("login"));

    if (isNewPassword()) userDTO.setPassword(getValueAsString("password"));
  }