P - the generic typeR - the generic typepublic interface User<P extends Permission,R extends Role<P>> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(R role)
Adds the given role to the user.
|
String |
getId()
Returns the field
id. |
String |
getPw()
Returns the field
password. |
Set<R> |
getRoles()
Returns the field
roles. |
String |
getUsername()
Returns the field
username. |
Boolean |
isActive()
Checks if this User is active.
|
Boolean |
isLocked()
Returns the field
lock. |
boolean |
removeRole(R role)
Removes the given role from the user.
|
void |
setActive(Boolean active)
Sets the active flag.
|
void |
setId(String id)
Sets the field
id. |
void |
setLocked(Boolean locked)
Sets the field
lock. |
void |
setPw(String password)
Sets the field
password. |
void |
setRoles(Set<R> roles)
Sets the field
roles. |
void |
setUsername(String username)
Sets the field
username. |
void addRole(R role)
role - the roleString getId()
id.id.String getUsername()
username.username.String getPw()
password.password.Boolean isLocked()
lock.lock.Boolean isActive()
void setActive(Boolean active)
active - the new active flag.boolean removeRole(R role)
role - the rolevoid setId(String id)
id.id - The id to setvoid setLocked(Boolean locked)
lock.locked - The lock to setvoid setUsername(String username)
username.username - The username to setvoid setPw(String password)
password.password - The password to setCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.