Class ConstraintReferenceMatcher<AH extends AssignmentHolderType>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.policy.evaluators.ConstraintReferenceMatcher<AH>
-
public class ConstraintReferenceMatcher<AH extends AssignmentHolderType> extends Object
Throw-away helper for matching target reference in constraints. It encapsulates the common state for a single constraint evaluation. Filter - if used - is evaluated lazily and only once.
-
-
Constructor Summary
Constructors Constructor Description ConstraintReferenceMatcher(@NotNull PolicyRuleEvaluationContext<AH> evalContext, @Nullable ObjectReferenceType targetReference, @NotNull ExpressionFactory expressionFactory, @NotNull OperationResult operationResult, @NotNull Trace logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
refMatchesTarget(PrismObject<?> object, String context)
-
-
-
Constructor Detail
-
ConstraintReferenceMatcher
public ConstraintReferenceMatcher(@NotNull @NotNull PolicyRuleEvaluationContext<AH> evalContext, @Nullable @Nullable ObjectReferenceType targetReference, @NotNull @NotNull ExpressionFactory expressionFactory, @NotNull @NotNull OperationResult operationResult, @NotNull @NotNull Trace logger)
-
-
Method Detail
-
refMatchesTarget
public boolean refMatchesTarget(PrismObject<?> object, String context) throws SchemaException
- Parameters:
object
- Object we want to match against the reference.- Throws:
SchemaException
-
-