|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface User
The Interface User.
| Method Summary | |
|---|---|
void |
addRole(Role role)
Adds the given role to the user. |
java.lang.String |
getId()
Returns the field id. |
java.lang.String |
getPassword()
Returns the field password. |
java.util.Set<Role> |
getRoles()
Returns the field roles. |
java.lang.String |
getUsername()
Returns the field username. |
boolean |
isLock()
Returns the field lock. |
boolean |
removeRole(Role role)
Removes the given role from the user. |
void |
setId(java.lang.String id)
Sets the field id. |
void |
setLock(boolean lock)
Sets the field lock. |
void |
setPassword(java.lang.String password)
Sets the field password. |
void |
setRoles(java.util.Set<Role> roles)
Sets the field roles. |
void |
setUsername(java.lang.String username)
Sets the field username. |
| Method Detail |
|---|
void addRole(Role role)
role - the rolejava.lang.String getId()
id.
id.java.util.Set<Role> getRoles()
roles.
roles.java.lang.String getUsername()
username.
username.java.lang.String getPassword()
password.
password.boolean isLock()
lock.
lock.boolean removeRole(Role role)
role - the rolevoid setId(java.lang.String id)
id.
id - The id to setvoid setLock(boolean lock)
lock.
lock - The lock to setvoid setRoles(java.util.Set<Role> roles)
roles.
roles - The roles to setvoid setUsername(java.lang.String username)
username.
username - The username to setvoid setPassword(java.lang.String password)
password.
password - The password to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||