|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleManager
The RoleManager
API exposes the methods to manage roles.
Method Summary | |
---|---|
RoleManagerResult |
addRoleRelationship(java.lang.String parentAttrName, java.lang.Object parentAttrValue, java.lang.String childAttrName, java.lang.Object childAttrValue) Add a direct relationship between two roles. |
RoleManagerResult |
addRoleRelationship(java.lang.String roleParentKey, java.lang.String roleChildKey) Add a direct relationship between two roles. |
RoleManagerResult |
create(Role role) This method creates a role in the back end data store |
RoleManagerResult |
delete(java.util.Set roleKeys) Bulk delete operation. |
RoleManagerResult |
delete(java.lang.String roleKey) Delete the role. |
RoleManagerResult |
delete(java.lang.String attributeName, java.lang.Object attributeValue) This method deletes a role based on a search criteria |
Role |
getDetails(java.lang.String attributeName, java.lang.Object attributeValue, java.util.Set retAttrs) This method return the role details for a role based on a search criteria |
Role |
getDetails(java.lang.String roleKey, java.util.Set retAttrs) Returns the profile details of the specified role. |
java.util.List |
getDirectRoleChildren(java.lang.String roleParentKey, java.util.Set retAttrs, java.util.Map configParams) Retrieve the roles direct children of the given role. |
java.util.List |
getDirectRoleParents(java.lang.String roleChildKey, java.util.Set retAttrs, java.util.Map configParams) Retrieve the roles who are the direct parents of the given role. |
java.util.List |
getRoleChildren(java.lang.String roleParentKey, boolean directAndIndirect) Retrieve the roles children of the given role. |
Relationship |
getRoleGrantDetails(java.lang.String roleAttributeName, java.lang.Object roleAttributeValue, java.lang.String userAttributeName, java.lang.Object userAttributeValue, java.util.Set retAttrs) Lookup the attributes of a role grant. |
Relationship |
getRoleGrantDetails(java.lang.String roleKey, java.lang.String userKey, java.util.Set retAttrs) Lookup the attributes of a role grant. |
java.util.List |
getRoleIndirectMembers(java.lang.String roleKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams) Retrieve the users indirect members of the given role matching the specified SearchCriteria . |
java.util.List |
getRoleMembers(java.lang.String roleKey, boolean directAndIndirect) Retrieve all the users members of the given role. |
java.util.List |
getRoleMembers(java.lang.String roleKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams, boolean directAndIndirect) Retrieve the users members of the given role matching the specified SearchCriteria . |
java.util.List |
getRoleParents(java.lang.String roleChildKey, boolean directAndIndirect) Retrieve the roles who are the parents of the given role. |
Relationship |
getRoleRelationshipDetails(java.lang.String parentAttrName, java.lang.Object parentAttrValue, java.lang.String childAttrName, java.lang.Object childAttrValue, java.util.Set retAttrs) Lookup the attributes of a role relationship. |
Relationship |
getRoleRelationshipDetails(java.lang.String roleParentKey, java.lang.String roleChildKey, java.util.Set retAttrs) Lookup the attributes of a role relationship. |
java.util.List |
getUnassignedRoleMembers(java.lang.String roleKey) Retrieve all the users that are not direct members of the given role. |
java.util.List |
getUnassignedRoleMembers(java.lang.String roleKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams) Retrieve all the users that are not direct members of the given role matching the specified. |
java.util.List |
getUnassignedUserMemberships(java.lang.String userKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams) Retrieve all the roles that are not direct memberships of the given user matching the specified SearchCriteria . |
java.util.List |
getUserMemberships(java.lang.String userKey, boolean directAndIndirect) Retrieve all the roles that the user is a member of. |
java.util.List |
getUserMemberships(java.lang.String userKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams, boolean directAndIndirect) Retrieve the roles of the given user matching the specified SearchCriteria . |
RoleManagerResult |
grantRole(java.lang.String roleAttributeName, java.lang.Object roleAttributeValue, java.lang.String userAttributeName, java.lang.Object userAttributeValue) Grant the role identified to the specified user/s based on the search criteria. |
RoleManagerResult |
grantRole(java.lang.String roleKey, java.util.Set userKeys) Grant the role identified by roleKey to the specified user/s. |
RoleManagerResult |
grantRole(java.lang.String roleKey, java.util.Set userKeys, boolean evaluatePolicies) Grant the role identified by roleKey to the specified user/s. |
RoleManagerResult |
grantRoles(java.lang.String userKey, java.util.Set roleKeys) Grant the roles identified by roleKeys to the specified user. |
boolean |
isRoleGranted(java.lang.String roleKey, java.lang.String userKey, boolean directAndIndirect) Return true if the user has the role granted. |
boolean |
isRoleParent(java.lang.String parentRoleKey, java.lang.String roleChildKey, boolean directAndIndirect) Return true if the role has the given parent. |
RoleManagerResult |
modify(Role role) This method updates the existing role having key 'roleKey' with the values specified. |
RoleManagerResult |
modify(java.util.Set roleKeys, Role role) Modifies roles in bulk. |
RoleManagerResult |
modify(java.lang.String attributeName, java.lang.Object attributeValue, Role role) This method modifies the role details for a role based on a search criteria |
RoleManagerResult |
removeRoleRelationship(java.lang.String parentAttrName, java.lang.Object parentAttrValue, java.lang.String childAttrName, java.lang.Object childAttrValue) Remove a direct relationship between two roles. |
RoleManagerResult |
removeRoleRelationship(java.lang.String roleParentKey, java.lang.String roleChildKey) Remove a direct relationship between two roles. |
RoleManagerResult |
revokeRoleGrant(java.lang.String roleAttributeName, java.lang.Object roleAttributeValue, java.lang.String userAttributeName, java.lang.Object userAttributeValue) Revoke the role for the specified user/s based on the search criteria. |
RoleManagerResult |
revokeRoleGrant(java.lang.String roleKey, java.util.Set userKeys) Revoke the role identified by roleKey to the specified user/s. |
RoleManagerResult |
revokeRoleGrant(java.lang.String roleKey, java.util.Set userKeys, boolean evaluatePolicies) Revoke the role identified by roleKey to the specified user/s. |
RoleManagerResult |
revokeRoleGrants(java.lang.String userKey, java.util.Set roleKeys) Revoke the roles identified by roleKeys to the specified user. |
java.util.List |
search(oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams) Searches for roles matching the specified SearchCriteria . |
void |
updateEntityDefinition() This method updates UDF entry in Role.xml in MDS repository. |
RoleManagerResult |
updateRoleGrant(java.lang.String roleAttributeName, java.lang.Object roleAttributeValue, java.lang.String userAttributeName, java.lang.Object userAttributeValue, java.util.Map args) Update a role grant. |
RoleManagerResult |
updateRoleGrant(java.lang.String roleKey, java.lang.String userKey, java.util.Map args) Update a role grant. |
RoleManagerResult |
updateRoleRelationship(java.lang.String parentAttrName, java.lang.Object parentAttrValue, java.lang.String childAttrName, java.lang.Object childAttrValue, java.util.Map args) Update a relationship between two roles. |
RoleManagerResult |
updateRoleRelationship(java.lang.String roleKey, java.lang.String roleChildKey, java.util.Map args) Update a relationship between two roles. |
Method Detail |
---|
RoleManagerResult create(Role role) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleAlreadyExistsException, RoleCreateException
role
- The attributes and values for this role.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleAlreadyExistsException
- if the role already exists.RoleCreateException
- if the orchestration fails for the create operation.RoleManagerResult modify(Role role) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleModifyException, NoSuchRoleException
role
- The attributes and values to update the role with.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleModifyException
- if the orchestration fails for modify operation.NoSuchRoleException
- if the role with given key is not found.RoleManagerResult modify(java.lang.String attributeName, java.lang.Object attributeValue, Role role) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleModifyException, NoSuchRoleException, SearchKeyNotUniqueException, RoleLookupException
attributeName
- The attribute name for the search criteriaattributeValue
- The attribute value for the search criteriarole
- The attributes and values to update the role with.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleModifyException
- if the orchestration fails for modify operation.NoSuchRoleException
- if the role with given search criteria is not found.SearchKeyNotUniqueException
- if there is more than one role of the search criteriaRoleLookupException
RoleManagerResult delete(java.lang.String attributeName, java.lang.Object attributeValue) throws SearchKeyNotUniqueException, ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleDeleteException, NoSuchRoleException, RoleLookupException
attributeName
- The attribute name for the search criteriaattributeValue
- The attribute value for the search criteriaSearchKeyNotUniqueException
- if there is more than one role of the search criteriaValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleDeleteException
- if the orchestration fails for delete operation.NoSuchRoleException
- if the role with given search criteria is not found.RoleLookupException
RoleManagerResult modify(java.util.Set roleKeys, Role role) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleModifyException, NoSuchRoleException
roleKeys
set are updated with value of all bulk modifiable attribute specified in the map.roleKeys
- The keys of the roles whose profiles are to be updated.role
- The common set of attributes and values to update the roles with.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleModifyException
- if the orchestration fails for modify operation.NoSuchRoleException
- if the role with given key is not found.RoleManagerResult delete(java.lang.String roleKey) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleDeleteException, NoSuchRoleException
roleKey
- The key of the role to be deleted.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleDeleteException
- if the orchestration fails for delete operation.NoSuchRoleException
- if the role with given key is not found.RoleManagerResult delete(java.util.Set roleKeys) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleDeleteException, NoSuchRoleException
roleKeys
- The keys of the roles to be deleted.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleDeleteException
- if the orchestration fails for delete operation.NoSuchRoleException
- if the role with given key is not found.Role getDetails(java.lang.String roleKey, java.util.Set retAttrs) throws oracle.iam.platform.authz.exception.AccessDeniedException, NoSuchRoleException, RoleLookupException
roleKey
- The key of the role who's details are required.retAttrs
- The set of attributes which are to be returned for each role.retAttrs
of the role is returned otherwise NoSuchRoleException
exception is thrown.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.NoSuchRoleException
RoleLookupException
java.util.List search(oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleSearchException
SearchCriteria
.criteria
- The search criteria based on which entries will be retrieved from the backend. The SearchCriteria Operators supported are AND, OR, NOT, GREATER_THAN, GREATER_EQUAL, LESS_THAN, LESS_EQUAL, EQUAL and NOT_EQUAL. For additional comparisons like contains the SearchCriteria Operator will be EQUAL with value to be searched will be '*<value>*'retAttrs
- The set of attributes which are to be returned for each role.configParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.
The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleSearchException
- if there is an exception while doing the searchRole getDetails(java.lang.String attributeName, java.lang.Object attributeValue, java.util.Set retAttrs) throws SearchKeyNotUniqueException, oracle.iam.platform.authz.exception.AccessDeniedException, NoSuchRoleException, RoleLookupException
attributeName
- - The attribute name for the search criteriaattributeValue
- - The attribute value for the search criteriaretAttrs
- - The attributes to be returned for the roleSearchKeyNotUniqueException
- if there is more than one role of the search criteriaoracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleSearchException
- if there is an exception while doing the searchNoSuchRoleException
- if the role with given search criteria is not foundRoleLookupException
RoleManagerResult grantRole(java.lang.String roleKey, java.util.Set userKeys) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantException
roleKey
- The key of the role to be granted.userKeys
- The keys of the user to whom to grant the role.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantException
- If operation fails.RoleManagerResult grantRole(java.lang.String roleKey, java.util.Set userKeys, boolean evaluatePolicies) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantException
roleKey
- The key of the role to be granted.userKeys
- The keys of the user to whom to grant the role.evaluatePolicies
- Boolean to indicate whether to evaluate policies or not when user is granted to the roleValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantException
- If operation fails.RoleManagerResult revokeRoleGrant(java.lang.String roleKey, java.util.Set userKeys) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantRevokeException
roleKey
- The key of the role to be revoked.userKeys
- The keys of the user to whom to revoke the role.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantRevokeException
- If operation fails.RoleManagerResult revokeRoleGrant(java.lang.String roleKey, java.util.Set userKeys, boolean evaluatePolicies) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantRevokeException
roleKey
- The key of the role to be revoked.userKeys
- The keys of the user to whom to revoke the role.evaluatePolicies
- Boolean to indicate whether to evaluate policies or not when user is revoked from the roleValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantRevokeException
- If operation fails.Relationship getRoleGrantDetails(java.lang.String roleKey, java.lang.String userKey, java.util.Set retAttrs) throws oracle.iam.platform.authz.exception.AccessDeniedException, NoSuchRoleGrantException, RoleGrantLookupException
roleKey
- The key of the role whose grant we are looking up.userKey
- The key of the user whose grant we are looking up.retAttrs
- The attributes to lookup.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantLookupException
- If operation fails.NoSuchRoleGrantException
- If the grant doesn't existRoleManagerResult grantRoles(java.lang.String userKey, java.util.Set roleKeys) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantException
userKey
- The key of the user to whom to grant the roles.roleKeys
- The keys of roles to be granted.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantException
- If operation fails.RoleManagerResult revokeRoleGrants(java.lang.String userKey, java.util.Set roleKeys) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantRevokeException
userKey
- The key of the user to whom to revoke the roles.roleKeys
- The keys of the roles to be revoked.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantRevokeException
- If operation fails.RoleManagerResult updateRoleGrant(java.lang.String roleKey, java.lang.String userKey, java.util.Map args) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantUpdateException, NoSuchRoleGrantException
roleKey
- The key of the role whose grant we are updating.userKey
- The key of the user whose grant we are updating.args
- The attributes and values to update the role grant with.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantUpdateException
- If operation fails.RoleGrantUpdateException
- If the role grant doesn't existNoSuchRoleGrantException
java.util.List getRoleMembers(java.lang.String roleKey, boolean directAndIndirect) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
roleKey
- The key of the role whose members we are looking up.directAndIndirect
- The flag used to lookup the role members either directly or indirectly.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.java.util.List getRoleMembers(java.lang.String roleKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams, boolean directAndIndirect) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
SearchCriteria
.roleKey
- The key of the role whose members we are looking up.criteria
- The search criteria based on which entries will be retrieved from the backend. The SearchCriteria Operators supported are AND, OR, NOT, GREATER_THAN, GREATER_EQUAL, LESS_THAN, LESS_EQUAL, EQUAL and NOT_EQUAL. For additional comparisons like contains the SearchCriteria Operator will be EQUAL with value to be searched will be '*<value>*'retAttrs
- The set of attributes which are to be returned for each user.configParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.
The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
directAndIndirect
- if the directAndIndirect is false returns only direct assigned members to role which are matched with search criteria.if the directAndIndirect is true returns direct and indirect assigned members of given role which are matched with search criteria.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.java.util.List getRoleIndirectMembers(java.lang.String roleKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
SearchCriteria
.roleKey
- The key of the role whose indirect members we are looking up.criteria
- The search criteria based on which entries will be retrieved from the backend. The SearchCriteria Operators supported are AND, OR, NOT, GREATER_THAN, GREATER_EQUAL, LESS_THAN, LESS_EQUAL, EQUAL and NOT_EQUAL. For additional comparisons like contains the SearchCriteria Operator will be EQUAL with value to be searched will be '*<value>*'retAttrs
- The set of attributes which are to be returned for each user.configParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.
The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
oracle.iam.platform.authz.exception.AccessDeniedException
RoleMemberException
java.util.List getUnassignedRoleMembers(java.lang.String roleKey) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
roleKey
- The key of the role whose not members we are looking up.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.java.util.List getUnassignedRoleMembers(java.lang.String roleKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
roleKey
- The key of the role whose not direct members we are looking up.criteria
- The search criteria based on which entries will be retrieved from the backend. The SearchCriteria Operators supported are AND, OR, NOT, GREATER_THAN, GREATER_EQUAL, LESS_THAN, LESS_EQUAL, EQUAL and NOT_EQUAL. For additional comparisons like contains the SearchCriteria Operator will be EQUAL with value to be searched will be '*<value>*'retAttrs
- The set of attributes which are to be returned for each user.configParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.
The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.boolean isRoleGranted(java.lang.String roleKey, java.lang.String userKey, boolean directAndIndirect) throws oracle.iam.platform.authz.exception.AccessDeniedException, UserMembershipException
roleKey
- The key of the role whose memberships we are looking up.userKey
- The key of the user whose memberships we are looking up.directAndIndirect
- if true, checks for direct and indirect memberships.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.UserMembershipException
- If operation fails.java.util.List getUserMemberships(java.lang.String userKey, boolean directAndIndirect) throws oracle.iam.platform.authz.exception.AccessDeniedException, UserMembershipException
userKey
- The key of the user whose memberships we are looking up.directAndIndirect
- The flag used to lookup the user memberships either directly or indirectly.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.UserMembershipException
- If operation fails.java.util.List getUserMemberships(java.lang.String userKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams, boolean directAndIndirect) throws oracle.iam.platform.authz.exception.AccessDeniedException, UserMembershipException
SearchCriteria
. Note that this API only checks for direct and indirect memberships based on the directAndIndirect flag.userKey
- The key of the user whose memberships we are looking up.criteria
- The search criteria based on which entries will be retrieved from the backend. The SearchCriteria Operators supported are AND, OR, NOT, GREATER_THAN, GREATER_EQUAL, LESS_THAN, LESS_EQUAL, EQUAL and NOT_EQUAL. For additional comparisons like contains the SearchCriteria Operator will be EQUAL with value to be searched will be '*<value>*'retAttrs
- The set of attributes which are to be returned for each role.configParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.
The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
directAndIndirect
- The flag used to lookup the user memberships either directly or indirectly.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.UserMembershipException
- If operation fails.java.util.List getUnassignedUserMemberships(java.lang.String userKey, oracle.iam.platform.entitymgr.vo.SearchCriteria criteria, java.util.Set retAttrs, java.util.Map configParams) throws oracle.iam.platform.authz.exception.AccessDeniedException, UserMembershipException
SearchCriteria
.userKey
- The key of the user whose not direct memberships we are looking up.criteria
- The search criteria based on which entries will be retrieved from the backend. The SearchCriteria Operators supported are AND, OR, NOT, GREATER_THAN, GREATER_EQUAL, LESS_THAN, LESS_EQUAL, EQUAL and NOT_EQUAL. For additional comparisons like contains the SearchCriteria Operator will be EQUAL with value to be searched will be '*<value>*'retAttrs
- The set of attributes which are to be returned for each role.configParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.
The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.UserMembershipException
- If operation fails.RoleManagerResult addRoleRelationship(java.lang.String roleParentKey, java.lang.String roleChildKey) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleRelationshipException
roleParentKey
- The key of the parent role in the relationship that we are creating.roleChildKey
- The key of the child role in the relationship that we are creating.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleRelationshipException
- If operation fails.RoleManagerResult removeRoleRelationship(java.lang.String roleParentKey, java.lang.String roleChildKey) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleRelationshipRemoveException
roleParentKey
- The key of the parent role in the relationship that we are deleting.roleChildKey
- The key of the child role in the relationship that we are deleting.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleRelationshipRemoveException
- If operation fails.Relationship getRoleRelationshipDetails(java.lang.String roleParentKey, java.lang.String roleChildKey, java.util.Set retAttrs) throws oracle.iam.platform.authz.exception.AccessDeniedException, NoSuchRoleRelationshipException, RoleRelationshipLookupException
roleParentKey
- The key of the parent role in the relationship we are looking up.userKey
- The key of the child role in the relationship we are looking up.retAttrs
- The attributes to lookup.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleRelationshipLookupException
- If operation fails.NoSuchRoleRelationshipException
- If the role relationship doesn't existRoleManagerResult updateRoleRelationship(java.lang.String roleKey, java.lang.String roleChildKey, java.util.Map args) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleRelationshipUpdateException, NoSuchRoleRelationshipException
roleKey
- The key of the parent role in the relationship that we are updating.roleChildKey
- The key of the child role in the relationship that we are updating.args
- The attributes and values to update the role relationship with.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleRelationshipUpdateException
- If operation fails.NoSuchRoleRelationshipException
- If the relationship doesn't existjava.util.List getRoleChildren(java.lang.String roleParentKey, boolean directAndIndirect) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
roleParentKey
- The key of the role whose relationships are looking up.directAndIndirect
- The flag used to lookup the role relationships either directly or indirectly.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.java.util.List getDirectRoleChildren(java.lang.String roleParentKey, java.util.Set retAttrs, java.util.Map configParams) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
roleParentKey
- The key of the role whose children are looking up.retAttrs
- The set of attributes which are to be returned for each role.configParams
- Parameters to further configure the search operation. There are two configuration parameters. STARTROW, and ENDROW The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.boolean isRoleParent(java.lang.String parentRoleKey, java.lang.String roleChildKey, boolean directAndIndirect) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
parentRoleKey
- The key of the role whose relationship we are looking up.directAndIndirect
- if true, checks for direct and indirect relationships.roleChildKey
- The key of the role whose relationship we are looking up.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.java.util.List getRoleParents(java.lang.String roleChildKey, boolean directAndIndirect) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
roleChildKey
- The key of the role whose parent we are looking up.directAndIndirect
- When set to false, will only return direct parents. When set to true, will return direct and indirect parents.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.java.util.List getDirectRoleParents(java.lang.String roleChildKey, java.util.Set retAttrs, java.util.Map configParams) throws oracle.iam.platform.authz.exception.AccessDeniedException, RoleMemberException
roleChildKey
- the key of the role whose parents are looking up.retAttrs
- The set of attributes which are to be returned for each role.configParams
- Parameters to further configure the search operation. There are two configuration parameters. STARTROW, and ENDROW The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleMemberException
- If operation fails.void updateEntityDefinition()
RoleManagerResult grantRole(java.lang.String roleAttributeName, java.lang.Object roleAttributeValue, java.lang.String userAttributeName, java.lang.Object userAttributeValue) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantException, SearchKeyNotUniqueException, NoSuchRoleException, NoSuchUserException
roleAttributeName
- The role attribute name for the search criteria.roleAttributeValue
- The role attribute value for the search criteria.userAttributeName
- The user attribute name for the search criteria.userAttributeValue
- The user attribute value for the search criteria.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required. authorization.RoleGrantException
- If operation fails.SearchKeyNotUniqueException
- if there is more than one roles or users for the given search criteria.NoSuchRoleException
- if the role with given search criteria is not found.NoSuchUserException
- if the user with given search criteria is not found.Relationship getRoleGrantDetails(java.lang.String roleAttributeName, java.lang.Object roleAttributeValue, java.lang.String userAttributeName, java.lang.Object userAttributeValue, java.util.Set retAttrs) throws oracle.iam.platform.authz.exception.AccessDeniedException, NoSuchRoleGrantException, RoleGrantLookupException, SearchKeyNotUniqueException, NoSuchRoleException, NoSuchUserException
roleAttributeName
- The role attribute name for the search criteria.roleAttributeValue
- The role attribute value for the search criteria.userAttributeName
- The user attribute name for the search criteria.userAttributeValue
- The user attribute value for the search criteria.retAttrs
- The attributes to lookup.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantLookupException
- If operation fails.NoSuchRoleGrantException
- If the grant doesn't exist.SearchKeyNotUniqueException
- if there is more than one roles or users for the given search criteria.NoSuchRoleException
- if the role with given search criteria is not found.NoSuchUserException
- if the user with given search criteria is not found.RoleManagerResult updateRoleGrant(java.lang.String roleAttributeName, java.lang.Object roleAttributeValue, java.lang.String userAttributeName, java.lang.Object userAttributeValue, java.util.Map args) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantUpdateException, NoSuchRoleGrantException, SearchKeyNotUniqueException, NoSuchRoleException, NoSuchUserException
roleAttributeName
- The role attribute name for the search criteria.roleAttributeValue
- The role attribute value for the search criteria.userAttributeName
- The user attribute name for the search criteria.userAttributeValue
- The user attribute value for the search criteria.args
- The attributes and values to update the role grant with.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantUpdateException
- If operation fails.NoSuchRoleGrantException
- If the role grant doesn't exist.SearchKeyNotUniqueException
- if there is more than one roles or users for the given search criteria.NoSuchRoleException
- if the role with given search criteria is not found.NoSuchUserException
- if the user with given search criteria is not found.RoleManagerResult revokeRoleGrant(java.lang.String roleAttributeName, java.lang.Object roleAttributeValue, java.lang.String userAttributeName, java.lang.Object userAttributeValue) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleGrantRevokeException, SearchKeyNotUniqueException, NoSuchRoleException, NoSuchUserException
roleAttributeName
- The role attribute name for the search criteria.roleAttributeValue
- The role attribute value for the search criteria.userAttributeName
- The user attribute name for the search criteria.userAttributeValue
- The user attribute value for the search criteria.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleGrantRevokeException
- If operation fails.SearchKeyNotUniqueException
- if there is more than one roles or users for the given search criteria.NoSuchRoleException
- if the role with given search criteria is not found.NoSuchUserException
- if the user with given search criteria is not found.Relationship getRoleRelationshipDetails(java.lang.String parentAttrName, java.lang.Object parentAttrValue, java.lang.String childAttrName, java.lang.Object childAttrValue, java.util.Set retAttrs) throws oracle.iam.platform.authz.exception.AccessDeniedException, NoSuchRoleRelationshipException, RoleRelationshipLookupException, SearchKeyNotUniqueException, NoSuchRoleException
parentAttrName
- The parent role attribute name for the search criteria.parentAttrValue
- The parent role attribute value for the search criteria.childAttrName
- The child role attribute name for the search criteria.childAttrValue
- The child role attribute value for the search criteria.retAttrs
- The attributes to lookup.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleRelationshipLookupException
- If operation fails.NoSuchRoleRelationshipException
- If the role relationship doesn't exist.SearchKeyNotUniqueException
- if there is more than one roles or users for the given search criteria.NoSuchRoleException
- if the role with given search criteria is not found.RoleManagerResult addRoleRelationship(java.lang.String parentAttrName, java.lang.Object parentAttrValue, java.lang.String childAttrName, java.lang.Object childAttrValue) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleRelationshipException, SearchKeyNotUniqueException, NoSuchRoleException
parentAttrName
- The parent role attribute name for the search criteria.parentAttrValue
- The parent role attribute value for the search criteria.childAttrName
- The child role attribute name for the search criteria.childAttrValue
- The child role attribute value for the search criteria.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleRelationshipException
- If operation fails.SearchKeyNotUniqueException
- if there is more than one roles or users for the given search criteria.NoSuchRoleException
- if the role with given search criteria is not found.RoleManagerResult removeRoleRelationship(java.lang.String parentAttrName, java.lang.Object parentAttrValue, java.lang.String childAttrName, java.lang.Object childAttrValue) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleRelationshipRemoveException, SearchKeyNotUniqueException, NoSuchRoleException
parentAttrName
- The parent role attribute name for the search criteria.parentAttrValue
- The parent role attribute value for the search criteria.childAttrName
- The child role attribute name for the search criteria.childAttrValue
- The child role attribute value for the search criteria.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleRelationshipRemoveException
- If operation fails.SearchKeyNotUniqueException
- if there is more than one roles or users for the given search criteria.NoSuchRoleException
- if the role with given search criteria is not found.RoleManagerResult updateRoleRelationship(java.lang.String parentAttrName, java.lang.Object parentAttrValue, java.lang.String childAttrName, java.lang.Object childAttrValue, java.util.Map args) throws ValidationFailedException, oracle.iam.platform.authz.exception.AccessDeniedException, RoleRelationshipUpdateException, NoSuchRoleRelationshipException, SearchKeyNotUniqueException, NoSuchRoleException
parentAttrName
- The parent role attribute name for the search criteria.parentAttrValue
- The parent role attribute value for the search criteria.childAttrName
- The child role attribute name for the search criteria.childAttrValue
- The child role attribute value for the search criteria.args
- The attributes and values to update the role relationship with.ValidationFailedException
- if the validation during the orchestration process fails.oracle.iam.platform.authz.exception.AccessDeniedException
- if the logged-in user does not have the required authorization.RoleRelationshipUpdateException
- If operation fails.NoSuchRoleRelationshipException
- If the relationship doesn't exist.SearchKeyNotUniqueException
- if there is more than one roles or users for the given search criteria.NoSuchRoleException
- if the role with given search criteria is not found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |