public class GenericUser extends Object implements Serializable
Constructor and Description |
---|
GenericUser(UserAuthoritiesDTO user,
UserService userService,
GroupService groupService)
Constructor
|
Modifier and Type | Method and Description |
---|---|
List<?> |
getAuthorities()
Return a list of authorities of this GenericUser
|
List<GroupDTO> |
getFreeGroups()
Return a list of groups that this GenericUser don't have
|
List<GroupDTO> |
getGroups()
getGroups
|
Long |
getId()
Return the GenericUser unique identifier
|
String |
getUsername()
Return the username of this GenericUser
|
UserView |
getUserView()
Return a read only GenericUser
|
void |
save()
Save the user
|
void |
setNewGroups(List<Integer> groups)
Add a list of groups to this GenericUser
|
public GenericUser(UserAuthoritiesDTO user, UserService userService, GroupService groupService)
user
- a UserAuthoritiesDTO
object.userService
- a UserService
object.groupService
- a GroupService
object.public void save()
public void setNewGroups(List<Integer> groups)
groups
- a List
object.public List<GroupDTO> getFreeGroups()
public String getUsername()
String
object.Copyright © 2015. All Rights Reserved.