Class PolicyRuleEvaluationContext<O extends ObjectType>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.policy.PolicyRuleEvaluationContext<O>
-
- Direct Known Subclasses:
AssignmentPolicyRuleEvaluationContext
,ObjectPolicyRuleEvaluationContext
public abstract class PolicyRuleEvaluationContext<O extends ObjectType> extends Object
Evaluation context for a policy rule. Common for assignment- and object-based rules. Should be quite short-living, only during policy rule evaluation.
-
-
Field Summary
Fields Modifier and Type Field Description @NotNull LensElementContext<O>
elementContext
@NotNull LensContext<?>
lensContext
@NotNull EvaluatedPolicyRuleImpl
policyRule
@NotNull ObjectState
state
@NotNull Task
task
-
Constructor Summary
Constructors Modifier Constructor Description protected
PolicyRuleEvaluationContext(@NotNull EvaluatedPolicyRuleImpl policyRule, @NotNull LensElementContext<O> elementContext, @NotNull Task task, @NotNull ObjectState state)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PolicyRuleEvaluationContext<O>
cloneWithStateConstraints(ObjectState state)
LensFocusContext<?>
getFocusContext()
PrismObject<O>
getObject()
PrismObjectDefinition<O>
getObjectDefinition()
abstract String
getShortDescription()
boolean
isApplicableToState()
-
-
-
Field Detail
-
policyRule
@NotNull public final @NotNull EvaluatedPolicyRuleImpl policyRule
-
lensContext
@NotNull public final @NotNull LensContext<?> lensContext
-
elementContext
@NotNull public final @NotNull LensElementContext<O extends ObjectType> elementContext
-
task
@NotNull public final @NotNull Task task
-
state
@NotNull public final @NotNull ObjectState state
-
-
Constructor Detail
-
PolicyRuleEvaluationContext
protected PolicyRuleEvaluationContext(@NotNull @NotNull EvaluatedPolicyRuleImpl policyRule, @NotNull @NotNull LensElementContext<O> elementContext, @NotNull @NotNull Task task, @NotNull @NotNull ObjectState state)
-
-
Method Detail
-
cloneWithStateConstraints
public abstract PolicyRuleEvaluationContext<O> cloneWithStateConstraints(ObjectState state)
-
getObject
public PrismObject<O> getObject()
-
getObjectDefinition
public PrismObjectDefinition<O> getObjectDefinition()
-
isApplicableToState
public boolean isApplicableToState()
-
getShortDescription
public abstract String getShortDescription()
-
getFocusContext
public LensFocusContext<?> getFocusContext()
-
-