Class SelfClause
java.lang.Object
com.evolveum.midpoint.schema.selector.spec.SelectorClause
com.evolveum.midpoint.schema.selector.spec.SelfClause
- All Implemented Interfaces:
DebugDumpable,Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetName()Human-understandable name to be used e.g. in tracing messages.booleanmatches(@NotNull PrismValue value, @NotNull MatchingContext ctx) Returnstruein case incoming value's OID matches at least one of the "self" OIDs (for "self" OIDs definition, look atSubjectedEvaluationContext.getSelfOids(com.evolveum.midpoint.schema.selector.eval.SubjectedEvaluationContext.DelegatorSelection)).booleantoFilter(@NotNull FilteringContext ctx) Converts the clause intoObjectFilter(passed toFilteringContext.filterCollector).toString()Methods inherited from class com.evolveum.midpoint.schema.selector.spec.SelectorClause
debugDump, requiresFullInformationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
getName
Description copied from class:SelectorClauseHuman-understandable name to be used e.g. in tracing messages.- Specified by:
getNamein classSelectorClause
-
matches
public boolean matches(@NotNull @NotNull PrismValue value, @NotNull @NotNull MatchingContext ctx) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Returnstruein case incoming value's OID matches at least one of the "self" OIDs (for "self" OIDs definition, look atSubjectedEvaluationContext.getSelfOids(com.evolveum.midpoint.schema.selector.eval.SubjectedEvaluationContext.DelegatorSelection)). In case of `OBJECT` matching type, there can be 2 types of the incoming prism value objects: either a reference value (PrismReferenceValue) or a full object (PrismObjectValueorPrismContainerValueholding anObjectType, seeObjectTypeUtil.asObjectTypeIfPossible(PrismValue)). The former is used as a performance optimization, currently in case of "pure self"AssigneeClause.matches(PrismValue, MatchingContext), see #10811/#10812. In case of `DEPUTY_ASSIGNMENT` matching type, the incoming value must be an assignment; in case of `DEPUTY_REFERENCE`, the incoming value must be a reference value. -
toFilter
Description copied from class:SelectorClauseConverts the clause intoObjectFilter(passed toFilteringContext.filterCollector). Returns `false` if the clause is not applicable to given situation.- Specified by:
toFilterin classSelectorClause
-
toString
-