Class SelectorMatcher
java.lang.Object
com.evolveum.midpoint.repo.common.query.SelectorMatcher
Modernized version of
RepositoryService.selectorMatches(ObjectSelectorType, PrismObject, ObjectFilterExpressionEvaluator, Trace, String)
.
Usually a short-lived object, useful for evaluation of applicability of a selector on a given value or a couple of values.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectorMatcher
forSelector
(@NotNull ObjectSelectorType selectorBean) boolean
matches
(@NotNull PrismObject<?> object) boolean
matches
(@NotNull PrismValue value) withFilterExpressionEvaluator
(@NotNull ObjectFilterExpressionEvaluator evaluator) withLogging
(@NotNull Trace logger) withLogging
(@NotNull Trace logger, @NotNull String logPrefix)
-
Method Details
-
forSelector
public static SelectorMatcher forSelector(@NotNull @NotNull ObjectSelectorType selectorBean) throws ConfigurationException - Throws:
ConfigurationException
-
withFilterExpressionEvaluator
public SelectorMatcher withFilterExpressionEvaluator(@NotNull @NotNull ObjectFilterExpressionEvaluator evaluator) -
withLogging
-
withLogging
public SelectorMatcher withLogging(@NotNull @NotNull Trace logger, @NotNull @NotNull String logPrefix) -
matches
public boolean matches(@NotNull @NotNull PrismObject<?> object) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException -
matches
public boolean matches(@NotNull @NotNull PrismValue value) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-