|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jaulp.auth.SimpleUser
public class SimpleUser
The Class SimpleUser.
Constructor Summary | |
---|---|
SimpleUser()
|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleUser()
Method Detail |
---|
public void addRole(Role role)
addRole
in interface User
role
- the roleUser.addRole(net.sourceforge.jaulp.auth.interfaces.Role)
public java.lang.String getId()
id
.
getId
in interface User
id
.User.getId()
public java.util.Set<Role> getRoles()
roles
.
getRoles
in interface User
roles
.User.getRoles()
public java.lang.String getUsername()
username
.
getUsername
in interface User
username
.User.getUsername()
public boolean isLock()
lock
.
isLock
in interface User
lock
.User.isLock()
public boolean removeRole(Role role)
removeRole
in interface User
role
- the roleUser.removeRole(net.sourceforge.jaulp.auth.interfaces.Role)
public void setId(java.lang.String id)
id
.
setId
in interface User
id
- The id
to setUser.setId(java.lang.String)
public void setLock(boolean lock)
lock
.
setLock
in interface User
lock
- The lock
to setUser.setLock(boolean)
public void setRoles(java.util.Set<Role> roles)
roles
.
setRoles
in interface User
roles
- The roles
to setUser.setRoles(java.util.Set)
public void setUsername(java.lang.String username)
username
.
setUsername
in interface User
username
- The username
to setUser.setUsername(java.lang.String)
public java.lang.String getPassword()
password
.
getPassword
in interface User
password
.User.getPassword()
public void setPassword(java.lang.String password)
password
.
setPassword
in interface User
password
- The password
to setUser.setPassword(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |