Class ParentClause
java.lang.Object
com.evolveum.midpoint.schema.selector.spec.SelectorClause
com.evolveum.midpoint.schema.selector.spec.ParentClause
- All Implemented Interfaces:
DebugDumpable
,Serializable
A clause that:
. Puts the (presumably) sub-object selector into the context of either a prism object, or upper-level container.
(Using a type in the
parentSelector
and a path
.)
. Optionally restricts the set of candidate parent values (of object or container).- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
getName()
Human-understandable name to be used e.g.@NotNull ValueSelector
@NotNull ItemPath
getPath()
boolean
matches
(@NotNull PrismValue value, @NotNull MatchingContext ctx) Returns `true` if the `value` matches this clause.static ParentClause
of
(@NotNull ValueSelector parent, @NotNull ItemPath path) boolean
toFilter
(@NotNull FilteringContext ctx) Converts the clause intoObjectFilter
(passed toFilteringContext.filterCollector
).toString()
Methods inherited from class com.evolveum.midpoint.schema.selector.spec.SelectorClause
debugDump
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
of
public static ParentClause of(@NotNull @NotNull ValueSelector parent, @NotNull @NotNull ItemPath path) throws ConfigurationException - Throws:
ConfigurationException
-
getName
Description copied from class:SelectorClause
Human-understandable name to be used e.g. in tracing messages.- Specified by:
getName
in classSelectorClause
-
getParentSelector
-
getPath
-
matches
public boolean matches(@NotNull @NotNull PrismValue value, @NotNull @NotNull MatchingContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Description copied from class:SelectorClause
Returns `true` if the `value` matches this clause. -
toFilter
public boolean toFilter(@NotNull @NotNull FilteringContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Description copied from class:SelectorClause
Converts the clause intoObjectFilter
(passed toFilteringContext.filterCollector
). Returns `false` if the clause is not applicable to given situation. -
toString
-