-
Method Summary
void
Adds or updates a group to the persistence.
Returns the identifier for the organization that is defining this set of roles.
Returns the roles for this group or an empty array if no roles are applicable.
Returns the roles for this user or an empty array if no roles are applicable.
void
void
Updates a user's group membership
-
Method Details
-
getRolesForUser
Returns the roles for this user or an empty array if no roles are applicable.
- Specified by:
getRolesForUser in interface RoleProvider
- Parameters:
userName - the user id
- Returns:
- the set of roles
- See Also:
-
-
getRolesForGroup
Returns the roles for this group or an empty array if no roles are applicable.
- Specified by:
getRolesForGroup in interface GroupProvider
- Parameters:
groupName - the group id
- Returns:
- the set of roles
- See Also:
-
-
getOrganization
Returns the identifier for the organization that is defining this set of roles.
- Specified by:
getOrganization in interface RoleProvider
- Returns:
- the defining organization
- See Also:
-
-
updateGroupMembershipFromRoles
Updates a user's group membership
- Parameters:
userName - the username
orgId - the user's organization
roleList - the list of group role names
-
addGroup
Adds or updates a group to the persistence.
- Parameters:
group - the group to add
- Throws:
UnauthorizedException
-
getGroups
Getting all groups
- Returns:
- Iterator<Group> persisted groups
-
updateGroup
Update a group
- Parameters:
groupId - the id of the group to update
name - the name to update
description - the description to update
roles - the roles to update
users - the users to update
- Throws:
NotFoundException - if the group is not found
UnauthorizedException - if the user does not have rights to update the group