public UserSecurityDTO(User user) { // todo AuthorityUtils.createAuthorityList(user.getRole().toString()) super( user.getEmail(), user.getPassword(), AuthorityUtils.createAuthorityList("ROLE_SUPER_ADMIN")); this.user = user; }
public Long getId() { return user.getId(); }