Class ValueSelector
java.lang.Object
com.evolveum.midpoint.schema.selector.spec.ValueSelector
- All Implemented Interfaces:
DebugDumpable
,Serializable
Parsed form of
ObjectSelectorType
and its subtypes.
It was created to allow easy manipulation and (eventually) better performance due to optimized data structures.
Immutable.- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptioncomputeFilter
(@NotNull FilteringContext ctx) Converts the clause intoObjectFilter
.debugDump
(int indent) static @NotNull ValueSelector
empty()
Covers all values.static ValueSelector
@Nullable ObjectSelectorType
getBean()
@NotNull List<SelectorClause>
@NotNull Class<?>
@Nullable ParentClause
@NotNull Class<?>
getTypeClass
(@NotNull Class<?> superType) @Nullable QName
boolean
boolean
boolean
boolean
matches
(@NotNull PrismValue value, @NotNull MatchingContext ctx) Returns `true` if the `value` matches this selector.static ValueSelector
of
(@NotNull TypeClause typeClause, @NotNull ParentClause parentClause) static ValueSelector
of
(SelectorClause... clauses) static @NotNull ValueSelector
parse
(@NotNull ObjectSelectorType bean) The bean is frozen during the parsing process.sameWithType
(@NotNull QName newType) Returns a selector that is the same as this one, except that the type is as specified.boolean
toFilter
(@NotNull FilteringContext ctx) Converts the selector intoObjectFilter
(passed toFilteringContext.filterCollector
).Returns a selector that is the same as this one (or even this one), except that it has no parent clause.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
empty
Covers all values. -
of
public static ValueSelector of(@NotNull @NotNull TypeClause typeClause, @NotNull @NotNull ParentClause parentClause) -
of
-
parse
@NotNull public static @NotNull ValueSelector parse(@NotNull @NotNull ObjectSelectorType bean) throws ConfigurationException The bean is frozen during the parsing process.- Throws:
ConfigurationException
-
forType
-
getTypeName
-
getClauses
-
getBean
-
matches
public boolean matches(@NotNull @NotNull PrismValue value, @NotNull @NotNull MatchingContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Returns `true` if the `value` matches this selector. -
computeFilter
public ObjectFilter computeFilter(@NotNull @NotNull FilteringContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Converts the clause intoObjectFilter
. If not applicable, returns `none` filter. -
toFilter
public boolean toFilter(@NotNull @NotNull FilteringContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Converts the selector intoObjectFilter
(passed toFilteringContext.filterCollector
). Returns `false` if the selector is not applicable to given situation. -
getParentClause
-
getEffectiveType
-
getTypeClass
@NotNull public @NotNull Class<?> getTypeClass(@NotNull @NotNull Class<?> superType) throws ConfigurationException - Throws:
ConfigurationException
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
getHumanReadableDesc
-
sameWithType
Returns a selector that is the same as this one, except that the type is as specified. May return the same object if types are equal. The type must be qualified. -
withParentRemoved
Returns a selector that is the same as this one (or even this one), except that it has no parent clause. -
isSubObject
public boolean isSubObject() -
isPureSelf
public boolean isPureSelf() -
isParentLess
public boolean isParentLess()
-