this.authType = authType;
return this;
}
public User build() {
UserDto dto = new UserDto();
dto.setActive(active);
dto.setAuthType(authType);
dto.setDescription(description);
dto.setEmail(email);
dto.setLocale(locale);
dto.setName(name);
dto.setNick(nick);
dto.setPassword(password);
dto.setSurname(surname);
User user = new User(context, dto);
user.enterprise = enterprise;
user.role = role;
return user;