|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleAssignmentService
Service for defining and managing the membership of an AssignedRole
.
Method Summary | |
---|---|
Set<AssignedRole> |
getAssignedRolesByPrincipal(RoleContext roleContext,
Principal principal)
Get all assignedRoles in a given context which have the specified principal as a member. |
RoleAssignment |
getRoleAssignment(AssignedRole assignedRole)
Get the roleAssignment object for the specified assignedRole. |
Set<RoleAssignment> |
getRoleAssignments(RoleContext roleContext)
Get all the roleAssignments for a specified context. |
Set<RoleAssignment> |
getRoleAssignmentsByRole(RoleDescriptor roleDescriptor)
Get all roleAssignments across the system which involve the specified role. |
Set<RoleAssignment> |
getRoleAssignmentsByRoleContextAndPrincipal(RoleContext roleContext,
Principal member)
Get all the roleAssignments for a context which include the specified principal as a member. |
boolean |
isPrincipalInRole(AssignedRole assignedRole,
Principal principal)
Is the principal a member of the specified role? |
void |
removeFromRoleAssignmentsOfRoleContext(RoleContext roleContext,
Principal member)
Remove the specified principal from all roleAssignments in the specified context. |
void |
removeMembersFromRoleAssignmentsOfRoleContext(RoleContext roleContext,
Set<Principal> members)
Remove the specified principals from all roleAssignments in the specified context. |
RoleAssignment |
updateRoleAssignment(RoleAssignment roleAssignment)
Update the specified roleAssignment. |
Method Detail |
---|
RoleAssignment getRoleAssignment(AssignedRole assignedRole) throws RoleAssignmentNotFoundException
assignedRole
- the assignedRole whos membership you wish to access.
RoleAssignmentNotFoundException
- The specified roleAssignment was not found.RoleAssignment updateRoleAssignment(RoleAssignment roleAssignment) throws RoleAssignmentNotFoundException, RoleAssignmentExistsException, RoleNotFoundException
roleAssignment
- the roleAssignment to update
RoleAssignmentNotFoundException
- The specified roleAssignment was not found.
RoleAssignmentExistsException
RoleNotFoundException
void removeFromRoleAssignmentsOfRoleContext(RoleContext roleContext, Principal member)
roleContext
- The context to search.member
- The principal to remove from all roleAssignments in the context.void removeMembersFromRoleAssignmentsOfRoleContext(RoleContext roleContext, Set<Principal> members)
roleContext
- The context to search.members
- The set of principals to remove from all roleAssignments in the specified context.Set<RoleAssignment> getRoleAssignments(RoleContext roleContext)
roleContext
- The context to search.
Set<RoleAssignment> getRoleAssignmentsByRoleContextAndPrincipal(RoleContext roleContext, Principal member)
roleContext
- The context to search.member
- The principal to search for.
Set<RoleAssignment> getRoleAssignmentsByRole(RoleDescriptor roleDescriptor)
roleDescriptor
- The role to search for.
boolean isPrincipalInRole(AssignedRole assignedRole, Principal principal)
assignedRole
- The assignedRole to check.principal
- The principal to search for in the assignedRole.
Set<AssignedRole> getAssignedRolesByPrincipal(RoleContext roleContext, Principal principal)
roleContext
- The context to search.principal
- The principal to search for within the context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |