Package oracle.iam.policyengine.api
Interface RuleManager
public interface RuleManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddReturnValue(String ruleId, ReturnValue rv) Add the return value parameter to the specified rule entity id.voidaddReturnValues(String ruleId, Set<ReturnValue> rvs) Add the the set of return values to the rule matching the rule entity id.Create a rule using specified rule.Delete the rule and all policy association relationships, i.e.Disaable the rule associated with the specified rule entity id.Enable the rule associated with the specified rule entity id.Retrieve list of policies assigned to the rule specified by the rule entity id.getDetails(String entityId, Set<String> retAttrs) Retrieve the attributes of the rule specified by the rule entity id.getReturnValue(String ruleId, String returnValueId, Set<String> retAttrs) Retrieve the return value matching both the specified rule entity id and the return value entity id.getReturnValues(String ruleId, SearchCriteria sc, Set<String> retAttrs, HashMap<String, Object> configParams) Retrieve the list of return values in the specified rule entity id that match the search criteria parameter.Lock the rule associated with the specified rule entity id.Modify the rule attributes in the specified rule entity.voidmodifyReturnValue(String returnValueId, ReturnValue rv) Modify the return value specified by rule entity id.voidmodifyReturnValues(String ruleId, Set<ReturnValue> rvs) Modify the return values matching both the specified rule entity id and the set of return values.voidremoveReturnValue(String ruleId, String returnValueId) Remove the return value matching both the specified rule entity id and return value id.voidremoveReturnValues(String ruleId, List<String> returnValueIds) Remove the return value entity ids matching both the specified rule entity id and list of return value ids.voidreplaceReturnValues(String ruleId, List<ReturnValue> rvs) Replace the return values of the rule specified by the rule entity id with the list of return values parameter.Search for the rules in the system that match the specified search criteria.Unlock the rule associated with the specified rule entity id.
-
Method Details
-
create
RuleManagerResult create(Rule entity) throws ValidationFailedException, EntityAlreadyExistsException, EntityCreateException, AccessDeniedException Create a rule using specified rule.- Parameters:
entity- the rule entity- Returns:
- RuleManagerResult result that contains rule entity id of the newly created rule
- Throws:
ValidationFailedExceptionEntityAlreadyExistsExceptionEntityCreateExceptionAccessDeniedException
-
modify
RuleManagerResult modify(Rule entity) throws ValidationFailedException, EntityModifyException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntityLockedException Modify the rule attributes in the specified rule entity. The rule entity must constain an rule entity id.- Parameters:
entity- the rule entity- Returns:
- RuleManagerResult result of the rule modify
- Throws:
ValidationFailedExceptionEntityModifyExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntityLockedException
-
delete
RuleManagerResult delete(String entityId) throws EntityDeleteException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, ValidationFailedException, EntityLockedException Delete the rule and all policy association relationships, i.e. remove from policies.- Parameters:
entityId- rule entity Id- Returns:
- RuleManagerResult result of the rule delete
- Throws:
EntityDeleteExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionValidationFailedExceptionEntityLockedException
-
getDetails
Rule getDetails(String entityId, Set<String> retAttrs) throws oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntitySearchException, ValidationFailedException Retrieve the attributes of the rule specified by the rule entity id. The retAttrs parameter specifies the attribute set to be returned.- Parameters:
entityId- the rule entity idretAttrs- the attributes of the rule to be returned- Returns:
- Rule entity associated with the rule entity id
- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntitySearchExceptionValidationFailedException
-
search
List<Rule> search(SearchCriteria sc, Set<String> retAttrs, Map<String, Object> config) throws EntitySearchException, AccessDeniedException, oracle.iam.platform.entitymgr.NoSuchEntityException, ValidationFailedExceptionSearch for the rules in the system that match the specified search criteria. The retAttrs parameter specifies the attribute set to be returned. The config map can used to define parameters such as pagination and sorting.- Parameters:
sc- the search criteriaretAttrs- set of attributes of the rule to returnconfig- map of configuration parameters- Returns:
- list of rule entities matching the search criteria
- Throws:
EntitySearchExceptionAccessDeniedExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionValidationFailedException
-
lock
RuleManagerResult lock(String ruleId) throws ValidationFailedException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntityLockException Lock the rule associated with the specified rule entity id.- Parameters:
ruleId- the rule entity id to lock- Returns:
- RuleManagerResult result of rule lock
- Throws:
ValidationFailedExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntityLockException
-
unlock
RuleManagerResult unlock(String ruleId) throws ValidationFailedException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntityLockException Unlock the rule associated with the specified rule entity id.- Parameters:
ruleId- the rule entity id to unlock- Returns:
- RuleManagerResult result of rule unlock
- Throws:
ValidationFailedExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntityLockException
-
enable
RuleManagerResult enable(String ruleId) throws ValidationFailedException, EntityDisableException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntitySearchException, EntityModifyException, EntityLockedException Enable the rule associated with the specified rule entity id.- Parameters:
ruleId- the rule entity id to enable- Returns:
- RuleManagerResult result of rule enable
- Throws:
ValidationFailedExceptionEntityDisableExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntitySearchExceptionEntityModifyExceptionEntityLockedException
-
disable
RuleManagerResult disable(String ruleId) throws ValidationFailedException, EntityDisableException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntitySearchException, EntityModifyException, EntityLockedException Disaable the rule associated with the specified rule entity id.- Parameters:
ruleId- the rule entity id to disable- Returns:
- RuleManagerResult result of rule disable
- Throws:
ValidationFailedExceptionEntityDisableExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntitySearchExceptionEntityModifyExceptionEntityLockedException
-
getAssignedPolicies
List<Policy> getAssignedPolicies(String ruleId, Set<String> retAttrs, HashMap<String, Object> configParams) throws RuleManagerException, EntitySearchException, AccessDeniedException, oracle.iam.platform.entitymgr.NoSuchEntityException, ValidationFailedExceptionRetrieve list of policies assigned to the rule specified by the rule entity id. The retAttrs parameter specifies the attribute set to be returned.- Parameters:
ruleId- the rule entity idretAttrs-configParams-- Returns:
- Throws:
RuleManagerExceptionEntitySearchExceptionAccessDeniedExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionValidationFailedException
-
getReturnValue
ReturnValue getReturnValue(String ruleId, String returnValueId, Set<String> retAttrs) throws oracle.iam.platform.entitymgr.NoSuchEntityException, EntitySearchException, ValidationFailedException Retrieve the return value matching both the specified rule entity id and the return value entity id. The retAttrs parameter can specify which return value attributes to return.- Parameters:
ruleId- the rule entity idreturnValueId- the return value entity idretAttrs-- Returns:
- the matching return value
- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionEntitySearchExceptionValidationFailedException
-
getReturnValues
List<ReturnValue> getReturnValues(String ruleId, SearchCriteria sc, Set<String> retAttrs, HashMap<String, Object> configParams) throws oracle.iam.platform.entitymgr.NoSuchEntityException, EntitySearchException, ValidationFailedExceptionRetrieve the list of return values in the specified rule entity id that match the search criteria parameter. The retAttrs parameter can specify which return value attributes to return.- Parameters:
ruleId- the rule entity idsc- the search criteria to matchretAttrs- set of return value attributes to returnconfigParams- config params- Returns:
- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionEntitySearchExceptionValidationFailedException
-
addReturnValue
void addReturnValue(String ruleId, ReturnValue rv) throws oracle.iam.platform.entitymgr.NoSuchEntityException, EntityModifyException, ValidationFailedException, EntityLockedException Add the return value parameter to the specified rule entity id.- Parameters:
ruleId- the rule entity idrv- the return value- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionEntityModifyExceptionValidationFailedExceptionEntityLockedException
-
addReturnValues
void addReturnValues(String ruleId, Set<ReturnValue> rvs) throws oracle.iam.platform.entitymgr.NoSuchEntityException, EntityModifyException, ValidationFailedException, EntityLockedException Add the the set of return values to the rule matching the rule entity id.- Parameters:
ruleId- the rule entity idrvs-- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionEntityModifyExceptionValidationFailedExceptionEntityLockedException
-
modifyReturnValue
void modifyReturnValue(String returnValueId, ReturnValue rv) throws oracle.iam.platform.entitymgr.NoSuchEntityException, ValidationFailedException, EntityModifyException, EntityLockedException Modify the return value specified by rule entity id.- Parameters:
returnValueId- the return value entity idrv- set of return values- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionValidationFailedExceptionEntityModifyExceptionEntityLockedException
-
modifyReturnValues
void modifyReturnValues(String ruleId, Set<ReturnValue> rvs) throws oracle.iam.platform.entitymgr.NoSuchEntityException, ValidationFailedException, EntityModifyException, EntityLockedException Modify the return values matching both the specified rule entity id and the set of return values.- Parameters:
ruleId- the rule entity idrvs- the return value to modify- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionValidationFailedExceptionEntityModifyExceptionEntityLockedException
-
removeReturnValue
void removeReturnValue(String ruleId, String returnValueId) throws oracle.iam.platform.entitymgr.NoSuchEntityException, EntityModifyException, EntityLockedException Remove the return value matching both the specified rule entity id and return value id.- Parameters:
ruleId- the rule entity idreturnValueId- the return value entity id- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionEntityModifyExceptionEntityLockedException
-
removeReturnValues
void removeReturnValues(String ruleId, List<String> returnValueIds) throws oracle.iam.platform.entitymgr.NoSuchEntityException, EntityModifyException, EntityLockedException Remove the return value entity ids matching both the specified rule entity id and list of return value ids.- Parameters:
ruleId- the rule entity idreturnValueIds- list of return value entity ids- Throws:
oracle.iam.platform.entitymgr.NoSuchEntityExceptionEntityModifyExceptionEntityLockedException
-
replaceReturnValues
Replace the return values of the rule specified by the rule entity id with the list of return values parameter. All of the return values for a the rule are replaced by the contents of the list.- Parameters:
ruleId- the rule entity idrvs- list of return values- Throws:
RuleManagerException
-