public interface PolicyManager
| Modifier and Type | Method and Description |
|---|---|
PolicyManagerResult |
assignRuleToPolicy(java.lang.String policyId,
java.lang.String ruleId,
java.lang.Long index)
Assign the rule specified by the rule entity id to the policy specified by the policy entity id.
|
PolicyManagerResult |
create(Policy entity)
Create a policy using specified policy entity attributes.
|
PolicyManagerResult |
delete(java.lang.String entityId)
Delete the policy and all rule assignment relationships, i.e.
|
PolicyManagerResult |
disable(java.lang.String policyId)
Disable the policy associated with the specified policy entity id.
|
PolicyManagerResult |
enable(java.lang.String policyId)
Enable the policy associated with the specified policy entity id.
|
Policy |
getDetails(java.lang.String entityId,
java.util.Set retAttrs)
Retrieve the attributes of the policy specified by the entity id.
|
java.util.List |
getRulesAssignedToPolicy(java.lang.String policyId)
Return rules assigned to the policy specified by the policy entity id.
|
PolicyManagerResult |
lock(java.lang.String policyId)
Lock the policy associated with the specified policy entity id.
|
PolicyManagerResult |
modify(Policy entity)
Modify the policy attributes specified in the policy entity.
|
PolicyManagerResult |
reorderPolicyRules(java.lang.String policyId,
java.util.Map orderedPolicyRules)
Reorder the rules of the policy associated with specified policy entity id.
|
PolicyManagerResult |
replacePolicyRules(java.lang.String policyId,
java.util.List ruleIds)
Replace all of the rules of the policy associated with the specified policy entity id, with the list of rule entity ids.
|
java.util.List |
search(SearchCriteria sc,
java.util.Set retAttrs,
java.util.Map config)
Search the policies in the system that match the specified search criteria.
|
PolicyManagerResult |
unAssignRuleFromPolicy(java.lang.String policyId,
java.lang.String ruleId)
Unassign the rule specified by the rule entity id from the policy specified by the policy entity id.
|
PolicyManagerResult |
unlock(java.lang.String policyId)
Unlock the policy associated with the specified policy entity id.
|
PolicyManagerResult create(Policy entity) throws ValidationFailedException, EntityAlreadyExistsException, EntityCreateException, AccessDeniedException
entity - policy entityValidationFailedExceptionEntityAlreadyExistsExceptionEntityCreateExceptionAccessDeniedExceptionPolicyManagerResult modify(Policy entity) throws ValidationFailedException, EntityModifyException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntityLockedException
entity - the policy entityValidationFailedExceptionEntityModifyExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntityLockedExceptionPolicyManagerResult delete(java.lang.String entityId) throws EntityDeleteException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, ValidationFailedException, EntityLockedException
entityId - policy entity IdEntityDeleteException, - NoSuchEntityException, AccessDeniedException,
ValidationFailedException, EntityLockedExceptionEntityDeleteExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionValidationFailedExceptionEntityLockedExceptionPolicy getDetails(java.lang.String entityId, java.util.Set retAttrs) throws ValidationFailedException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntitySearchException
entityId - the policy entity idretAttrs - the attributes of the policy to be returnedValidationFailedExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntitySearchExceptionjava.util.List search(SearchCriteria sc, java.util.Set retAttrs, java.util.Map config) throws EntitySearchException, AccessDeniedException, oracle.iam.platform.entitymgr.NoSuchEntityException, ValidationFailedException
sc - the search criteriaretAttrs - set of attributes of the policy to returnconfig - map of configuration parametersEntitySearchExceptionAccessDeniedExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionValidationFailedExceptionPolicyManagerResult lock(java.lang.String policyId) throws ValidationFailedException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntityLockException
policyId - the policy entity id to lockValidationFailedExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntityLockExceptionPolicyManagerResult unlock(java.lang.String policyId) throws ValidationFailedException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntityLockException
policyId - the policy entity id to unlockValidationFailedExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntityLockExceptionPolicyManagerResult enable(java.lang.String policyId) throws ValidationFailedException, EntityDisableException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntitySearchException, EntityModifyException, EntityLockedException
policyId - the policy entity id to enableValidationFailedExceptionEntityDisableExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntitySearchExceptionEntityModifyExceptionEntityLockedExceptionPolicyManagerResult disable(java.lang.String policyId) throws ValidationFailedException, EntityDisableException, oracle.iam.platform.entitymgr.NoSuchEntityException, AccessDeniedException, EntitySearchException, EntityModifyException, EntityLockedException
policyId - the policy entity id to disableValidationFailedExceptionEntityDisableExceptionoracle.iam.platform.entitymgr.NoSuchEntityExceptionAccessDeniedExceptionEntitySearchExceptionEntityModifyExceptionEntityLockedExceptionPolicyManagerResult assignRuleToPolicy(java.lang.String policyId, java.lang.String ruleId, java.lang.Long index) throws oracle.iam.platform.entitymgr.NoSuchEntityException, PolicyManagerException, AccessDeniedException, ValidationFailedException, EntityModifyException, EntitySearchException, EntityLockedException
policyId - the policy entity idruleId - the rule entity idindex - specifies the position in the rule set to insert the ruleoracle.iam.platform.entitymgr.NoSuchEntityExceptionPolicyManagerExceptionAccessDeniedExceptionValidationFailedExceptionEntityModifyExceptionEntitySearchExceptionEntityLockedExceptionPolicyManagerResult unAssignRuleFromPolicy(java.lang.String policyId, java.lang.String ruleId) throws oracle.iam.platform.entitymgr.NoSuchEntityException, PolicyManagerException, AccessDeniedException, EntityModifyException, ValidationFailedException, EntitySearchException, EntityLockedException
policyId - the policy entity idruleId - the rule entity idoracle.iam.platform.entitymgr.NoSuchEntityExceptionPolicyManagerExceptionAccessDeniedExceptionEntityModifyExceptionValidationFailedExceptionEntitySearchExceptionEntityLockedExceptionjava.util.List getRulesAssignedToPolicy(java.lang.String policyId)
throws oracle.iam.platform.entitymgr.NoSuchEntityException,
PolicyManagerException,
AccessDeniedException,
EntitySearchException,
ValidationFailedException
policyId - the policy idoracle.iam.platform.entitymgr.NoSuchEntityExceptionPolicyManagerExceptionAccessDeniedExceptionEntitySearchExceptionValidationFailedExceptionPolicyManagerResult reorderPolicyRules(java.lang.String policyId, java.util.Map orderedPolicyRules) throws oracle.iam.platform.entitymgr.NoSuchEntityException, EntityLockedException, ValidationFailedException, AccessDeniedException, EntityModifyException
policyId - the policy entity idorderedPolicyRules - map specifiying the new rule orderoracle.iam.platform.entitymgr.NoSuchEntityExceptionEntityLockedExceptionValidationFailedExceptionAccessDeniedExceptionEntityModifyExceptionPolicyManagerResult replacePolicyRules(java.lang.String policyId, java.util.List ruleIds) throws PolicyManagerException
policyId - the policy entity idruleIds - list of rules defining new policy rule set and orderingPolicyManagerException