Class PolicyRuleProcessor
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.policy.PolicyRuleProcessor
-
- All Implemented Interfaces:
ProjectorProcessor
@Component public class PolicyRuleProcessor extends Object implements ProjectorProcessor
- Author:
- semancik, mederly
-
-
Constructor Summary
Constructors Constructor Description PolicyRuleProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <F extends AssignmentHolderType>
voidaddGlobalPolicyRulesToAssignments(LensContext<F> context, DeltaSetTriple<EvaluatedAssignmentImpl<F>> evaluatedAssignmentTriple, Task task, OperationResult result)
<F extends AssignmentHolderType>
voidevaluateAssignmentPolicyRules(LensContext<F> context, DeltaSetTriple<EvaluatedAssignmentImpl<F>> evaluatedAssignmentTriple, Task task, OperationResult result)
Evaluates the policies (policy rules, but also legacy policies).<AH extends AssignmentHolderType>
@NotNull List<EvaluatedPolicyRuleTrigger<?>>evaluateConstraints(PolicyConstraintsType constraints, boolean allMustApply, PolicyRuleEvaluationContext<AH> ctx, OperationResult result)
<AH extends AssignmentHolderType>
voidevaluateObjectPolicyRules(LensContext<AH> context, XMLGregorianCalendar now, Task task, OperationResult result)
-
-
-
Method Detail
-
evaluateAssignmentPolicyRules
public <F extends AssignmentHolderType> void evaluateAssignmentPolicyRules(LensContext<F> context, DeltaSetTriple<EvaluatedAssignmentImpl<F>> evaluatedAssignmentTriple, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
Evaluates the policies (policy rules, but also legacy policies). Triggers the rules. But does not enforce anything and does not make any context changes. TODO really? also for legacy policies? Takes into account all policy rules related to assignments in the given evaluatedAssignmentTriple. Focus policy rules are not processed here, even though they might come through these assignments.
-
evaluateObjectPolicyRules
public <AH extends AssignmentHolderType> void evaluateObjectPolicyRules(LensContext<AH> context, XMLGregorianCalendar now, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException
-
evaluateConstraints
@NotNull public <AH extends AssignmentHolderType> @NotNull List<EvaluatedPolicyRuleTrigger<?>> evaluateConstraints(PolicyConstraintsType constraints, boolean allMustApply, PolicyRuleEvaluationContext<AH> ctx, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
-
addGlobalPolicyRulesToAssignments
public <F extends AssignmentHolderType> void addGlobalPolicyRulesToAssignments(LensContext<F> context, DeltaSetTriple<EvaluatedAssignmentImpl<F>> evaluatedAssignmentTriple, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException
-
-