Package | Description |
---|---|
com.sas.hls.security.role |
Service and class definitions for manipulating and creating roles, their
availability in contexts, and their membership lists.
|
Modifier and Type | Class and Description |
---|---|
class |
Role
Role is a logical grouping of privileges.
|
Modifier and Type | Method and Description |
---|---|
RoleDescriptor |
AssignedRole.getRoleDescriptor()
Get the role being assigned to a context.
|
RoleDescriptor |
Role.toDescriptor()
Get a roleDescriptor for this role
|
Modifier and Type | Method and Description |
---|---|
Set<RoleDescriptor> |
RoleDefinitionService.getAllRolesByPrivilege(Privilege privilege)
Get all roles defined which include the specified privilege.
|
Set<RoleDescriptor> |
RoleDefinitionService.getRoleDescriptors(RoleContext roleContext)
Get light-weight representations of all roles defined in a given context.
|
Set<RoleDescriptor> |
RoleDefinitionService.getRolesByPrivilege(RoleContext roleContext,
Privilege privilege)
Get all roles defined in a given context which include the specified privilege.
|
static List<RoleDescriptor> |
Role.toDescriptors(List<Role> roles)
Get roleDescriptors for these roles
|
Modifier and Type | Method and Description |
---|---|
boolean |
RoleDefinitionService.assignedRoleExists(RoleContext context,
RoleDescriptor roleDescriptor)
Check if the given role is assigned to the context
|
AssignedRole |
RoleDefinitionService.assignRoleToContext(RoleContext context,
RoleDescriptor role)
Assign an existing role to a context that is a child of the context that the role was defined at so that the
inherited role definition may be used at another context.
|
void |
RoleDefinitionService.deleteRole(RoleDescriptor roleDescriptor)
Delete a role and remove its assignment from the context it was defined at.
|
Set<AssignedRole> |
RoleDefinitionService.getAllAssignedRoles(RoleDescriptor role)
Get all assignments of this role to contexts in the system
|
AssignedRole |
RoleDefinitionService.getAssignedRole(RoleContext context,
RoleDescriptor role)
Get the specified role assigned to the context
|
Set<RoleAssignment> |
RoleAssignmentService.getRoleAssignmentsByRole(RoleDescriptor roleDescriptor)
Get all roleAssignments across the system which involve the specified role.
|
void |
AssignedRole.setRoleDescriptor(RoleDescriptor roleDescriptor)
Set the role being assigned to a context.
|
void |
RoleDefinitionService.unassignAssignedRole(RoleDescriptor roleDescriptor)
Remove all assignments of this role to inherited contexts.
|
Modifier and Type | Method and Description |
---|---|
Set<Role> |
RoleDefinitionService.getRolesByDescriptors(Set<RoleDescriptor> roleDescriptors)
Get a set of roles given their role descriptors
|
Constructor and Description |
---|
AssignedRole(String identifier,
ObjectIdentity roleContext,
RoleDescriptor roleDescriptor,
boolean inherited)
Constructor
|
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA