@Entity public class DefaultUser extends Object implements User<UUID>
| Constructor and Description |
|---|
DefaultUser()
default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEmail()
gets the user's Email
|
String |
getFirstName()
gets the user's FirstName
|
List<Group> |
getGroups() |
UUID |
getId() |
String |
getLastName()
get's the user's lastName
|
String |
getLogin()
getLogin
|
String |
getPassword()
gets the Password
The password can not be given in the XML/JSON representation of the user
|
List<Permission> |
getPermissions() |
List<Role> |
getRoles() |
void |
setEmail(String email)
sets the user's email
|
void |
setFirstName(String firstName)
sets the user's FirstName
|
void |
setGroups(List<Group> groups) |
void |
setId(UUID id) |
void |
setLastName(String lastName)
sets the user's LastName
|
void |
setLogin(String login)
setLogin
|
void |
setPassword(String password)
sets the user's Password
|
void |
setPermissions(List<Permission> permissions) |
void |
setRoles(List<Role> roles) |
String |
toString() |
public void setId(UUID id)
@NotNull @NotEmpty public String getLogin()
public void setLogin(String login)
@NotNull @NotEmpty public String getPassword()
getPassword in interface User<UUID>public void setPassword(String password)
setPassword in interface User<UUID>password - ,the password to be set to the userpublic List<Permission> getPermissions()
getPermissions in interface User<UUID>public void setPermissions(List<Permission> permissions)
permissions - the permissions@NotEmpty @NotNull public String getFirstName()
public void setFirstName(String firstName)
firstName - the firstName to be set@NotEmpty @NotNull public String getLastName()
public void setLastName(String lastName)
lastName - the lastName to be set@Email @NotNull public String getEmail()
public void setEmail(String email)
email - the email to be setCopyright © 2014. All Rights Reserved.