public interface RoleManagerRemote
| Modifier and Type | Method and Description |
|---|---|
void |
addBundleGroupsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] bundleGroupIds)
Adds the given bundle groups to the given role.
|
void |
addResourceGroupsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] pendingGroupIds)
Adds the given resource groups to the given role.
|
void |
addRolesToBundleGroup(org.rhq.core.domain.auth.Subject subject,
int bundleGroupId,
int[] roleIds) |
void |
addRolesToResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] roleIds) |
void |
addRolesToSubject(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
Assigns a set of roles to a subject which authorizes the subject to do anything the roles permit.
|
void |
addSubjectsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] subjectIds)
Assigns a set of subjects to a role which authorizes the subjects to do anything the role permits.
|
org.rhq.core.domain.authz.Role |
createRole(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.authz.Role newRole)
Persists the new role to the database.
|
void |
deleteRoles(org.rhq.core.domain.auth.Subject subject,
int[] roleIds)
Removes a set of roles from the database.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findRolesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.RoleCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findSubjectAssignedRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
org.rhq.core.domain.util.PageControl pc)
Get all roles assigned for a certain subject
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findSubjectUnassignedRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
org.rhq.core.domain.util.PageControl pc)
Get all roles eligible to be assigned to the user.
|
org.rhq.core.domain.authz.Role |
getRole(org.rhq.core.domain.auth.Subject subject,
int roleId)
Returns the role with the given ID
|
void |
removeBundleGroupsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] bundleGroupIds)
Removes the given bundle groups from the given role.
|
void |
removeResourceGroupsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
Removes the given resource groups from the given role.
|
void |
removeRolesFromBundleGroup(org.rhq.core.domain.auth.Subject subject,
int bundleGroupId,
int[] roleIds)
Remove the bundle group from the specified roles.
|
void |
removeRolesFromResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] roleIds)
Remove the resource group from the specified roles.
|
void |
removeRolesFromSubject(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
Remove particular roles from a subject.
|
void |
removeSubjectsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] subjectIds)
Dissociate particular subjects from a role.
|
void |
setAssignedBundleGroups(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] bundleGroupIds)
Set the specified bundle groups on the role, replacing the previous set of bundle groups.
|
void |
setAssignedResourceGroups(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
Set the specified resource groups on the role, replacing the previous set of resource groups.
|
void |
setAssignedSubjectRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
Sets the set of roles assigned to a subject.
|
org.rhq.core.domain.authz.Role |
updateRole(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.authz.Role role)
Updates the given role including permissions.
|
org.rhq.core.domain.authz.Role getRole(org.rhq.core.domain.auth.Subject subject,
int roleId)
subject - roleId - null if it wasn't foundorg.rhq.core.domain.authz.Role createRole(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.authz.Role newRole)
subject - The user attempting to create the rolenewRole - The new role being createdvoid deleteRoles(org.rhq.core.domain.auth.Subject subject,
int[] roleIds)
subject - The user attempting to delete the roleroleIds - The IDs of the roles to deleteorg.rhq.core.domain.authz.Role updateRole(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.authz.Role role)
subject - The user updating the rolerole - The role being updatedorg.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findSubjectAssignedRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
org.rhq.core.domain.util.PageControl pc)
subject - The logged in user's subjectsubjectId - The subject ID to find the associated roles forpc - PageControlorg.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findSubjectUnassignedRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
org.rhq.core.domain.util.PageControl pc)
subject - subjectId - pc - void addRolesToSubject(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
subject - The logged in user's subject.subjectId - the subject who is to be authorized with the given rolesroleIds - the roles to assignvoid removeRolesFromSubject(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
subject - The logged in user's subject.subjectId - the user that is to have the roles unassigned from itroleIds - list of role IDs that are to be removed from uservoid addSubjectsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] subjectIds)
subject - the user attempting to assign the roles to the subjectroleId - the role who will authorized with the given subjectssubjectIds - the subjects to assign the rolevoid removeSubjectsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] subjectIds)
subject - The logged in user's subject.roleId - The role ID to dissociate the roles fromsubjectIds - The IDs of the subjects to remove from the specified Rolevoid setAssignedSubjectRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
subject - subjectId - roleIds - void addBundleGroupsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] bundleGroupIds)
subject - The logged in user's subject.roleId - bundleGroupIds - void addResourceGroupsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] pendingGroupIds)
subject - The logged in user's subject.roleId - pendingGroupIds - void addRolesToBundleGroup(org.rhq.core.domain.auth.Subject subject,
int bundleGroupId,
int[] roleIds)
subject - bundleGroupId - roleIds - void addRolesToResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] roleIds)
subject - groupId - roleIds - void setAssignedBundleGroups(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] bundleGroupIds)
subject - roleId - bundleGroupIds - void setAssignedResourceGroups(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
subject - roleId - groupIds - void removeBundleGroupsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] bundleGroupIds)
subject - user attempting to remove the groups from the roleroleId - bundleGroupIds - void removeResourceGroupsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
subject - user attempting to remove the groups from the roleroleId - groupIds - void removeRolesFromBundleGroup(org.rhq.core.domain.auth.Subject subject,
int bundleGroupId,
int[] roleIds)
subject - bundleGroupId - roleIds - void removeRolesFromResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] roleIds)
subject - groupId - roleIds - org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findRolesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.RoleCriteria criteria)
subject - criteria - Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.