|
||||||||||
| 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(java.lang.String username,
java.lang.String roles)
Create a new Syncope session user |
|
| Method Summary | |
|---|---|
org.apache.wicket.authorization.strategies.role.Roles |
getRoles()
|
java.lang.String |
getUsername()
|
boolean |
hasAnyRole(org.apache.wicket.authorization.strategies.role.Roles roles)
Whether this user has any of the given roles. |
boolean |
hasRole(java.lang.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(java.lang.String username,
java.lang.String roles)
username - roles - a comma seperated list of roles
(corresponding to Syncope's entitlements)| Method Detail |
|---|
public java.lang.String getUsername()
public boolean hasAnyRole(org.apache.wicket.authorization.strategies.role.Roles roles)
roles - set of roles
public boolean hasRole(java.lang.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 | |||||||||