public interface RoleManagerLocal extends RoleManagerRemote
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findAvailableRolesForSubject(org.rhq.core.domain.auth.Subject subject,
Integer subjectId,
Integer[] pendingRoleIds,
org.rhq.core.domain.util.PageControl pc)
This returns a list of roles that are available to be assigned to a given subject but not yet assigned to that
subject.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findRoles(org.rhq.core.domain.util.PageControl pc)
Returns a list of all roles in the system.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findRolesByIds(Integer[] roleIds,
org.rhq.core.domain.util.PageControl pc)
Given a set of role Ids, this returns a list of all the roles.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findRolesBySubject(int subjectId,
org.rhq.core.domain.util.PageControl pc)
This returns a page list of all the roles that a subject is authorized to access.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.auth.Subject> |
findSubjectsByRole(Integer roleId,
org.rhq.core.domain.util.PageControl pc)
Get all subjects that have been assigned the given role.
|
Set<org.rhq.core.domain.authz.Permission> |
getPermissions(Integer roleId)
Given a role ID, this will return the complete set of authorized permissions for that role.
|
org.rhq.core.domain.authz.Role |
getRoleById(Integer roleId)
Deprecated.
|
void |
setAssignedSubjects(org.rhq.core.domain.auth.Subject sessionSubject,
int roleId,
int[] subjectIds) |
void |
setPermissions(org.rhq.core.domain.auth.Subject subject,
Integer roleId,
Set<org.rhq.core.domain.authz.Permission> permissions)
Sets the permissions for the specified role.
|
addBundleGroupsToRole, addResourceGroupsToRole, addRolesToBundleGroup, addRolesToResourceGroup, addRolesToSubject, addSubjectsToRole, createRole, deleteRoles, findRolesByCriteria, findSubjectAssignedRoles, findSubjectUnassignedRoles, getRole, removeBundleGroupsFromRole, removeResourceGroupsFromRole, removeRolesFromBundleGroup, removeRolesFromResourceGroup, removeRolesFromSubject, removeSubjectsFromRole, setAssignedBundleGroups, setAssignedResourceGroups, setAssignedSubjectRoles, updateRoleorg.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findRolesBySubject(int subjectId,
org.rhq.core.domain.util.PageControl pc)
subjectId - the id of the subject whose roles are to be returnedpc - org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findRoles(org.rhq.core.domain.util.PageControl pc)
pc - void setPermissions(org.rhq.core.domain.auth.Subject subject,
Integer roleId,
Set<org.rhq.core.domain.authz.Permission> permissions)
permissions will be the complete set of permissions the role will now be authorized with.subject - the user attempting to peform the setroleId - the ID of the role to modifypermissions - a set of permissions to give to the roleSet<org.rhq.core.domain.authz.Permission> getPermissions(Integer roleId)
roleId - org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findRolesByIds(Integer[] roleIds, org.rhq.core.domain.util.PageControl pc)
roleIds - pc - org.rhq.core.domain.util.PageList<org.rhq.core.domain.auth.Subject> findSubjectsByRole(Integer roleId, org.rhq.core.domain.util.PageControl pc)
roleId - pc - org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findAvailableRolesForSubject(org.rhq.core.domain.auth.Subject subject,
Integer subjectId,
Integer[] pendingRoleIds,
org.rhq.core.domain.util.PageControl pc)
pendingRoleIds since it is assumed the pending roles will be assigned to the user.subject - user attempting to make this callsubjectId - the subject whose list of available roles are to be returnedpendingRoleIds - the list of roles that are planned to be given to the subjectpc - @Deprecated org.rhq.core.domain.authz.Role getRoleById(Integer roleId)
roleId - null if it wasn't foundvoid setAssignedSubjects(org.rhq.core.domain.auth.Subject sessionSubject,
int roleId,
int[] subjectIds)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.