|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
Role |
createRole(java.lang.String name,
java.lang.String displayName)
Create a new role with the specified name. |
Role |
findRoleById(java.lang.Object id)
Retrieves a role by its id. |
Role |
findRoleById(java.lang.String id)
Retrieves a role by its id. |
Role |
findRoleByName(java.lang.String name)
Retrieves a role by its name |
java.util.Set |
findRoleMembers(java.lang.String roleName,
int offset,
int limit,
java.lang.String userNameFilter)
Returns role members based on rolename |
java.util.Set |
findRoles()
Get all the roles |
java.util.Set |
findRolesByNames(java.lang.String[] names)
Retrieve a collection of role from the role names. |
java.util.Set |
getRoles(User user)
Return the set of role objects that a given user has. |
int |
getRolesCount()
Returns the number of roles. |
void |
removeRole(java.lang.Object id)
Remove a role. |
void |
setRoles(User user,
java.util.Set roles)
Assign a set of role objects to a given user. |
| Method Detail |
public Role findRoleByName(java.lang.String name) throws IdentityException, java.lang.IllegalArgumentException
name - the role name
IdentityException
java.lang.IllegalArgumentException
public java.util.Set findRolesByNames(java.lang.String[] names)
throws IdentityException,
java.lang.IllegalArgumentException
names - the role names
java.lang.IllegalArgumentException
IdentityExceptionpublic Role findRoleById(java.lang.Object id) throws IdentityException, java.lang.IllegalArgumentException
id - the role id
IdentityException
java.lang.IllegalArgumentExceptionpublic Role findRoleById(java.lang.String id) throws IdentityException, java.lang.IllegalArgumentException
id - the role id
IdentityException
java.lang.IllegalArgumentExceptionpublic Role createRole(java.lang.String name, java.lang.String displayName) throws IdentityException, java.lang.IllegalArgumentException
name - the role namedisplayName - the role display name
IdentityException
java.lang.IllegalArgumentException
public void removeRole(java.lang.Object id)
throws IdentityException,
java.lang.IllegalArgumentException
id - the role id
IdentityException
java.lang.IllegalArgumentException
public int getRolesCount()
throws IdentityException
IdentityException
public java.util.Set findRoles()
throws IdentityException
IdentityException
public java.util.Set findRoleMembers(java.lang.String roleName,
int offset,
int limit,
java.lang.String userNameFilter)
throws IdentityException
roleName - offset - limit -
IdentityExceptionpublic void setRoles(User user, java.util.Set roles) throws IdentityException
user - the userroles - the user roles
IdentityExceptionpublic java.util.Set getRoles(User user) throws IdentityException
user - the user
IdentityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||