|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.syncope.console.SyncopeUser
public class SyncopeUser
SyncopeUser to store in SyncopeSession after the authentication.
| Constructor Summary | |
|---|---|
SyncopeUser(String username,
String roles)
Create a new Syncope session user |
|
| Method Summary | |
|---|---|
org.apache.wicket.authorization.strategies.role.Roles |
getRoles()
|
String |
getUsername()
|
boolean |
hasAnyRole(org.apache.wicket.authorization.strategies.role.Roles roles)
Whether this user has any of the given roles. |
boolean |
hasRole(String role)
Whether this user has the given role. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyncopeUser(String username,
String roles)
username - roles - a comma seperated list of roles
(corresponding to Syncope's entitlements)| Method Detail |
|---|
public String getUsername()
public boolean hasAnyRole(org.apache.wicket.authorization.strategies.role.Roles roles)
roles - set of roles
public boolean hasRole(String role)
role -
public org.apache.wicket.authorization.strategies.role.Roles getRoles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||