|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleManagerRemote
The remote interface to the role manager, providing a restricted set of Role Management services. that provides the API to manipulate the security rules within the JON Server.
Method Summary | |
---|---|
void |
addResourceGroupsToRole(Subject subject,
int roleId,
int[] pendingGroupIds)
Adds the given resource groups to the given role. |
void |
addRolesToResourceGroup(Subject subject,
int groupId,
int[] roleIds)
|
void |
addRolesToSubject(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(Subject subject,
int roleId,
int[] subjectIds)
Assigns a set of subjects to a role which authorizes the subjects to do anything the role permits. |
Role |
createRole(Subject subject,
Role newRole)
Persists the new role to the database. |
void |
deleteRoles(Subject subject,
int[] roleIds)
Removes a set of roles from the database. |
PageList<Role> |
findRolesByCriteria(Subject subject,
RoleCriteria criteria)
|
PageList<Role> |
findSubjectAssignedRoles(Subject subject,
int subjectId,
PageControl pc)
Get all roles assigned for a certain subject |
PageList<Role> |
findSubjectUnassignedRoles(Subject subject,
int subjectId,
PageControl pc)
|
Role |
getRole(Subject subject,
int roleId)
Returns the role with the given ID |
void |
removeResourceGroupsFromRole(Subject subject,
int roleId,
int[] groupIds)
Removes the given resource groups from the given role. |
void |
removeRolesFromResourceGroup(Subject subject,
int groupId,
int[] roleIds)
|
void |
removeRolesFromSubject(Subject subject,
int subjectId,
int[] roleIds)
Disassociates particular roles from a subject. |
void |
removeSubjectsFromRole(Subject subject,
int roleId,
int[] subjectIds)
Dissociate particular subjects from a role. |
void |
setAssignedResourceGroups(Subject subject,
int roleId,
int[] groupIds)
|
void |
setAssignedSubjectRoles(Subject subject,
int subjectId,
int[] roleIds)
Sets the set of roles assigned to a subject. |
Role |
updateRole(Subject subject,
Role role)
Updates the given role, excluding the subjects and groups. |
Method Detail |
---|
Role getRole(Subject subject, int roleId)
subject
- roleId
-
null
if it wasn't foundRole createRole(Subject subject, Role newRole)
subject
- The user attempting to create the rolenewRole
- The new role being created
void deleteRoles(Subject subject, int[] roleIds)
subject
- The user attempting to delete the roleroleIds
- The IDs of the roles to deleteRole updateRole(Subject subject, Role role)
subject
- The user updating the rolerole
- The role being updated
PageList<Role> findSubjectAssignedRoles(Subject subject, int subjectId, PageControl pc)
subject
- The logged in user's subjectsubjectId
- The subject ID to find the associated roles forpc
- PageControl
PageList<Role> findSubjectUnassignedRoles(Subject subject, int subjectId, PageControl pc)
void addRolesToSubject(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(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(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(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(Subject subject, int subjectId, int[] roleIds)
subject
- subjectId
- roleIds
- void addResourceGroupsToRole(Subject subject, int roleId, int[] pendingGroupIds)
subject
- The logged in user's subject.roleId
- pendingGroupIds
- void addRolesToResourceGroup(Subject subject, int groupId, int[] roleIds)
void setAssignedResourceGroups(Subject subject, int roleId, int[] groupIds)
void removeResourceGroupsFromRole(Subject subject, int roleId, int[] groupIds)
subject
- user attempting to remove the groups from the roleroleId
- groupIds
- void removeRolesFromResourceGroup(Subject subject, int groupId, int[] roleIds)
PageList<Role> findRolesByCriteria(Subject subject, RoleCriteria criteria)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |