Class PolicyRuleEvaluationContext<AH extends AssignmentHolderType>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.policy.PolicyRuleEvaluationContext<AH>
-
- Direct Known Subclasses:
AssignmentPolicyRuleEvaluationContext
,ObjectPolicyRuleEvaluationContext
public abstract class PolicyRuleEvaluationContext<AH extends AssignmentHolderType> extends Object
Evaluation context for a policy rule.
-
-
Field Summary
Fields Modifier and Type Field Description @NotNull LensFocusContext<AH>
focusContext
@NotNull LensContext<AH>
lensContext
@NotNull EvaluatedPolicyRule
policyRule
@NotNull ObjectState
state
@NotNull Task
task
-
Constructor Summary
Constructors Modifier Constructor Description protected
PolicyRuleEvaluationContext(@NotNull EvaluatedPolicyRule policyRule, @NotNull LensContext<AH> context, @NotNull Task task, @NotNull RulesEvaluationContext globalCtx, @NotNull ObjectState state)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PolicyRuleEvaluationContext<AH>
cloneWithStateConstraints(ObjectState state)
PrismObject<AH>
getObject()
PrismObjectDefinition<AH>
getObjectDefinition()
abstract String
getShortDescription()
boolean
isApplicableToState()
void
record()
abstract void
triggerRule(Collection<EvaluatedPolicyRuleTrigger<?>> triggers)
-
-
-
Field Detail
-
policyRule
@NotNull public final @NotNull EvaluatedPolicyRule policyRule
-
lensContext
@NotNull public final @NotNull LensContext<AH extends AssignmentHolderType> lensContext
-
focusContext
@NotNull public final @NotNull LensFocusContext<AH extends AssignmentHolderType> focusContext
-
task
@NotNull public final @NotNull Task task
-
state
@NotNull public final @NotNull ObjectState state
-
-
Constructor Detail
-
PolicyRuleEvaluationContext
protected PolicyRuleEvaluationContext(@NotNull @NotNull EvaluatedPolicyRule policyRule, @NotNull @NotNull LensContext<AH> context, @NotNull @NotNull Task task, @NotNull @NotNull RulesEvaluationContext globalCtx, @NotNull @NotNull ObjectState state)
-
-
Method Detail
-
cloneWithStateConstraints
public abstract PolicyRuleEvaluationContext<AH> cloneWithStateConstraints(ObjectState state)
-
triggerRule
public abstract void triggerRule(Collection<EvaluatedPolicyRuleTrigger<?>> triggers)
-
getObject
public PrismObject<AH> getObject()
-
getObjectDefinition
public PrismObjectDefinition<AH> getObjectDefinition()
-
isApplicableToState
public boolean isApplicableToState()
-
getShortDescription
public abstract String getShortDescription()
-
record
public void record()
-
-