|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.examples.authorization.User
public class User
Simple user object.
Constructor Summary | |
---|---|
User(java.lang.String uid,
java.lang.String roles)
Construct. |
Method Summary | |
---|---|
java.lang.String |
getUid()
Gets the uid. |
boolean |
hasAnyRole(Roles roles)
Whether this user has any of the given roles. |
boolean |
hasRole(java.lang.String role)
Whether this user has the given role. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public User(java.lang.String uid, java.lang.String roles)
uid
- the unique user idroles
- a comma seperated list of roles (e.g. USER,ADMIN)Method Detail |
---|
public boolean hasRole(java.lang.String role)
role
-
public boolean hasAnyRole(Roles roles)
roles
- set of roles
public java.lang.String getUid()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |