|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AdminRoleService
Service interface to query admin roles defined in an OIM installation and manage scoped user memberships in these roles.
AdminRoleMembership| Method Summary | |
|---|---|
AdminRoleMembership |
addAdminRoleMembership(AdminRoleMembership membership)Adds an admin role membership. |
AdminRoleVO |
createAdminRole(AdminRoleVO compAdminRole)The API creates the Admin Role based on AdminRoleVO. |
AdminRole |
getAdminRole(java.lang.String roleName)Returns a a admin role matching the given name (case-insensitive). |
AdminRole |
getAdminRoleForID(java.lang.String roleId)Returns a a admin role matching the given name (case-insensitive). |
java.util.List |
getAdminRoles()Returns list of admin roles available in an installation |
java.util.List |
getAdminRoles(java.lang.String scopeId)Returns list of admin roles available within the context of the passed scope-id. |
java.util.List |
getAdminRolesForUser(java.lang.String userId, java.util.Map paramsMap)Get the list of admin roles for passed userId |
AdminRoleVO |
getAdminRoleVO(java.lang.String adminRoleId)Returns the admin-role value object for the given admin role Id. |
java.util.List |
getCapabilities(PolicyConstants.Resources resourceType, Capability.Type capType)Returns list of capabilities available in an installation for the given capability-type. |
java.util.List |
getCapabilities(PolicyConstants.Resources resourceType, java.util.List actions)Returns the list of capabilities for a given resource-type and actions. |
java.util.List |
getCapabilitiess(PolicyConstants.Resources resourceType)Returns list of capabilities available in an installation for a given resource-type. |
java.util.List |
getCapabilitiess(PolicyConstants.Resources resourceType, PolicyConstants.Actions action)Returns list of capabilities available in an installation for a given resourceType and action |
java.util.List |
getCapabilitiess(java.lang.String adminRoleName)This method will return the associated capability with an admin role. |
Capability |
getCapability(java.lang.String resourceType, java.lang.String action)Returns list of capabilities available in an installation for a given resourceType and action |
Capability |
getCapabilityForID(java.lang.String capabilityId)Returns list of capabilities available in an installation for a given resourceType and action |
java.util.List |
getGlobalAdminRoles()Returns a list of admin roles which can only be assigned in scope of Top organization. |
java.util.List |
getScopedAdminRoles()Returns list of admin roles which are usually assigned in the context of non-Top organization. |
java.util.List |
getUsersAssigned(java.lang.String adminRoleId, java.util.Set retAttrs, java.util.HashMap configParams)Returns the list of User identities assigned to the admin-role |
java.util.List |
getUsersAssignedWithScope(java.lang.String adminRoleId, java.util.Set retAttrs, java.util.HashMap configParams, java.lang.String scopeId)Returns the list of User identities assigned to the admin-role |
boolean |
isAuthorizationRequired()Convenience method to check if Authorization checks are required or not. |
java.util.List |
listMembershipsForUserByRoleName(java.lang.String userId, java.util.List roleName)Returns a list of user's admin role memberships based on role names.. |
java.util.List |
listMembershipsInScope(java.lang.String scopeId, java.lang.String roleName, boolean includeHierarchy, java.util.Map paramsMap)Returns a list of admin role membership in the given scope. |
java.util.List |
listUsersMembership(java.util.List lstUserId, java.lang.String roleName, java.lang.String scopeId, boolean includeHierarchy, java.util.Map paramsMap)Returns a list of user's admin role memberships based on the parameters. |
java.util.List |
listUsersMembership(java.lang.String userId, java.lang.String roleName, java.lang.String scopeId, boolean includeHierarchy, java.util.Map paramsMap)Returns a list of user's admin role memberships based on the parameters. |
java.util.List |
listUsersMembership(java.lang.String userId, java.lang.String roleName, java.lang.String scopeId, java.util.Map paramsMap)Returns a list of user's admin role memberships based on the parameters. |
void |
modifyAdminRole(AdminRoleVO compAdminRole)The API modifies the adminRole data. |
boolean |
removeAdminRole(AdminRole adminRole)Removes a custom admin role from the application. |
boolean |
removeAdminRoleMembership(AdminRoleMembership membership)Removes a admin role membership. |
java.util.List |
search(SearchCriteria sc, java.util.Map controlParams)Returns a list of admin roles as per the organization scoping based on the parameters. |
boolean |
updateRoleMemberships(AdminRoleMembership roleMembership)Method to update the role memberships. |
| Method Detail |
|---|
java.util.List getAdminRoles()
java.util.List getScopedAdminRoles()
java.util.List getGlobalAdminRoles()
AdminRole getAdminRole(java.lang.String roleName)
roleName - name of the admin role, required, not-nullAdminRole getAdminRoleForID(java.lang.String roleId)
roleId - id of the admin role, required, not-nullboolean removeAdminRole(AdminRole adminRole)
adminRole - role to be removed from the applicationAdminRoleMembership addAdminRoleMembership(AdminRoleMembership membership)
membership - a valid membership to add, requiredjava.lang.IllegalArgumentException - this runtime exception will be thrown if admin role is global scoped and membership is attempted within a non-Top scope.boolean removeAdminRoleMembership(AdminRoleMembership membership)
membership - a valid membership to be removed, required
java.util.List listUsersMembership(java.util.List lstUserId,
java.lang.String roleName,
java.lang.String scopeId,
boolean includeHierarchy,
java.util.Map paramsMap)
lstUserId - optional, list of valid user-idroleName - optional, the admin role name.scopeId - optional, specific scope filter.includeHierarchy - this parameter is honored only when a valid scope id is passed. if true then include any user's memberships to scope's parent, otherwise include direct scope assignment.paramsMap - optional, other filters like paging, etc ....
java.util.List listUsersMembership(java.lang.String userId,
java.lang.String roleName,
java.lang.String scopeId,
boolean includeHierarchy,
java.util.Map paramsMap)
userId - a valid user-id, requiredroleName - - optional, the Admin role name filterscopeId - optional, specific scope filterincludeHierarchy - this parameter is honored only when a valid scope id is passed. If true, then include any user's memberships to scope's parent, otherwise include direct scope assignment.
java.util.List listMembershipsInScope(java.lang.String scopeId,
java.lang.String roleName,
boolean includeHierarchy,
java.util.Map paramsMap)
scopeId - a valid scope id, requiredroleName - - optional, the Admin role name filterincludeHierarchy - If true, then include any memberships in this scope inherited from the parent of this scope, otherwise include only direct membership to the scope.boolean updateRoleMemberships(AdminRoleMembership roleMembership)
rolemembership - that has updated data
java.util.List getAdminRolesForUser(java.lang.String userId,
java.util.Map paramsMap)
userId - - The user id for which the Admin-roles need to be determined.paramsMap - - The additional params for paging, sorting etc ....
java.util.List listMembershipsForUserByRoleName(java.lang.String userId,
java.util.List roleName)
userId - a valid user-id, requiredroleName - - required, the Admin role name filterjava.util.List getAdminRoles(java.lang.String scopeId)
boolean isAuthorizationRequired()
java.util.List getCapabilitiess(PolicyConstants.Resources resourceType,
PolicyConstants.Actions action)
resourceType - resource for which the search.action - the action.java.util.List getCapabilitiess(PolicyConstants.Resources resourceType)
resourceType - the resource name.
java.util.List getCapabilities(PolicyConstants.Resources resourceType,
Capability.Type capType)
resourceType - the resource name.capType - the capability type. Capability type can be admin/self/all.java.util.List getCapabilitiess(java.lang.String adminRoleName)
adminRoleName - select admin role name.
java.util.List search(SearchCriteria sc,
java.util.Map controlParams)
throws java.lang.Exception
sc - optional, search criteriacontrolParams - optional, and filters like paging,sorting etc ....java.lang.Exception
Capability getCapability(java.lang.String resourceType,
java.lang.String action)
Capability getCapabilityForID(java.lang.String capabilityId)
AdminRoleVO createAdminRole(AdminRoleVO compAdminRole)
AdminRoleVO - admin role value objectAdminRoleVO getAdminRoleVO(java.lang.String adminRoleId)
adminRoleId - admin-role key.void modifyAdminRole(AdminRoleVO compAdminRole)
compAdminRole - - the admin-role details that needs to be modified.
java.util.List getUsersAssigned(java.lang.String adminRoleId,
java.util.Set retAttrs,
java.util.HashMap configParams)
adminRoleId - role-key for the admin-role.retAttrs - the user attributes need to be returnedconfigParams - the comfigparams.
java.util.List getUsersAssignedWithScope(java.lang.String adminRoleId,
java.util.Set retAttrs,
java.util.HashMap configParams,
java.lang.String scopeId)
adminRoleId - role-key for the admin-role.retAttrs - the user attributes need to be returnedconfigParams - the comfigparams.ScopeId - associated with admin role.
java.util.List listUsersMembership(java.lang.String userId,
java.lang.String roleName,
java.lang.String scopeId,
java.util.Map paramsMap)
userId - a valid user-id, requiredroleName - - optional, the Admin role name filterscopeId - optional, specific scope filter
java.util.List getCapabilities(PolicyConstants.Resources resourceType,
java.util.List actions)
resourceType -actions -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||