Interface PolicyViolationManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignPolicyViolations
(List<String> policyViolationIds, String remediator, Remediator.RemediatorType remediatorType) Assign or reassign a collection of policy violationsvoid
closePolicyViolation
(String policyViolationId, String comment) Closes a policy violation.void
completePolicyViolation
(String policyViolationId) Completes a policy violation.findPolicyViolationsForEntity
(String userId, String entityType, String entityId, String parentEntityId) Returns the non-closed policy violations for which given entity is one of the causes.getActionHistory
(String policyViolationId, Map<String, Object> configParams) Returns action history for a given policy violationgetDetails
(String policyViolationId, Set<String> retAttrs) Loads the policy violation with given policy violation IdReturn the list of policy violations matching the search criteria.
-
Method Details
-
getDetails
PolicyViolation getDetails(String policyViolationId, Set<String> retAttrs) throws IDAEngineException Loads the policy violation with given policy violation Id- Parameters:
policyViolationId
- Id of the policy violation to be retrieved.retAttrs
- Set of attributes which need to populated, usenull
to get all attributes.- Returns:
- PolicyViolation entity with cause details
- Throws:
IDAEngineException
- A runtime exception containing information on how to find detailed information in a server log.
-
search
List<PolicyViolation> search(SearchCriteria searchCriteria, Set<String> retAttrs, Map<String, Object> configParams) throws IDAEngineExceptionReturn the list of policy violations matching the search criteria. Each returned entity will be populated with specified attributes. Range of items can be specified using configParams. Ordering of items can be specified using configParams.- Parameters:
searchCriteria
- Search criteria indicating which objects to retrieve. Usenull
to get all objects.retAttrs
- Attributes to be filled in for each object returned. Usenull
to get all attributes.configParams
- Parameters to configure ordering and range of results. Usenull
to get all results without sorting. There are four configuration parameters: STARTROW, ENDROW, SORTEDBY and SORTORDER. Defined as String constants in package oracle.iam.identity.utils.Constants: SEARCH_STARTROW, SEARCH_ENDROW, SEARCH_SORTEDBY and SEARCH_SORTORDERThe STARTROW and ENDROW parameters indicate the subset of the complete search result to be fetched. Default values are -1 (complete results are returned). If ENDROW < STARTROW then an IllegalArgumentException is thrown.
The SORTEDBY parameter indicates the attribute used for sorting. This parameter is optional and set to null by default.
The SORTORDER parameter indicates order of sorting: ASCENDING or DESCENDING. Defined as an enum in package oracle.iam.platform.entitymgr.spi.entity.Searchable.SortOrder. This parameter is optional and is ASCENDING by default.
- Returns:
- List of PolicyViolation objects containing specified attributes.
- Throws:
IDAEngineException
- A runtime exception containing information on how to find detailed information in a server log.
-
completePolicyViolation
Completes a policy violation. SOA policy vioaltion remediation task will be closed. Policy violation will move to completed state via SOA callback.- Parameters:
policyViolationId
- Id of the policy violation to be completed.- Throws:
IDAEngineException
- A runtime exception containing information on how to find detailed information in a server log.
-
closePolicyViolation
Closes a policy violation. Policy violation remediation task will also be closed in SOA- Parameters:
policyViolationId
- Id of the policy violation to be closed.- Throws:
IDAEngineException
- A runtime exception containing information on how to find detailed information in a server log.
-
getActionHistory
List<ActionHistory> getActionHistory(String policyViolationId, Map<String, Object> configParams) throws IDAEngineExceptionReturns action history for a given policy violation- Parameters:
policyViolationId
- Id of the policy violation for the search.configParams
- Parameters to configure ordering and range of results. Usenull
to get all results without sorting.- Throws:
IDAEngineException
- A runtime exception containing information on how to find detailed information in a server log.
-
findPolicyViolationsForEntity
List<PolicyViolation> findPolicyViolationsForEntity(String userId, String entityType, String entityId, String parentEntityId) throws IDAEngineException Returns the non-closed policy violations for which given entity is one of the causes.- Parameters:
userId
- User key for which violations are to be found. (IAM_USER_ID in Certifications)entityType
- Type of entity, from IDAConstants: REMEDIATION_TYPE_ENTITLEMENT, REMEDIATION_TYPE_ACCOUNT, REMEDIATION_TYPE_ROLEentityId
- Id of the entity - Role: UGP Key, Account: OIU Key, Entitlement: ENT_LIST key. (IAM_ID in Certifications)parentEntityId
- If entityType is Entitlement, this parameter indicates the account (OIU) key. Else this will be null/ignored.- Returns:
- List of policy violations
- Throws:
IDAEngineException
-
assignPolicyViolations
void assignPolicyViolations(List<String> policyViolationIds, String remediator, Remediator.RemediatorType remediatorType) throws IDAEngineException Assign or reassign a collection of policy violationsNote: In this release, only
PolicyViolation
s with statusPolicyViolation.Status.OPEN
may be assigned- Parameters:
policyViolationIds
- - list of policy violation idsremediator
- - username (if remediatoryType is user ) or role name ( if remediatoryType = Role )remediatorType
- - Remediator.remediatorType (Remediator.remediatorType.USER or Remediator.remediatorType.ROLE )- Throws:
IDAEngineException
-