Package org.nuxeo.ecm.directory.memory
Class MapExpressionEvaluator
java.lang.Object
org.nuxeo.ecm.core.storage.ExpressionEvaluator
org.nuxeo.ecm.directory.memory.MapExpressionEvaluator
- Direct Known Subclasses:
MemoryDirectoryExpressionEvaluator
Evaluates an expression on a map.
- Since:
- 10.3
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.storage.ExpressionEvaluator
ExpressionEvaluator.PathResolver
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.storage.ExpressionEvaluator
DATE_CAST, fulltextSearchDisabled, hasFulltext, NEG_PHRASE_QUOTE, NXQL_ECM_ANCESTOR_IDS, NXQL_ECM_FULLTEXT_BINARY, NXQL_ECM_FULLTEXT_SIMPLE, NXQL_ECM_PATH, NXQL_ECM_READ_ACL, OR, pathResolver, PHRASE_QUOTE, principals
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matchesEntry
(Expression expression, Map<String, Object> map) protected QueryParseException
unknownProperty
(String name) protected Boolean
walkAncestorId
(Operator op, Operand rvalue) protected Boolean
walkEcmFulltext
(String name, Operator op, Operand rvalue) protected Boolean
walkEcmPath
(Operator op, Operand rvalue) protected Boolean
walkIsTrashed
(Operator op, Operand rvalue) walkMixinTypes
(List<String> mixins, boolean include) Matches the mixin types against a list of values.walkReference
(Reference ref) Evaluates a reference over the context state.walkStartsWith
(Operand lvalue, Operand rvalue) Methods inherited from class org.nuxeo.ecm.core.storage.ExpressionEvaluator
and, bool, checkDateLiteralForCast, cmp, cmp, eq, eqMaybeList, fulltext, fulltext, fulltext1, in, inMaybeList, isMixinTypes, like, likeMaybeList, likeToRegex, not, or, walkAnd, walkBetween, walkBooleanLiteral, walkDateLiteral, walkDoubleLiteral, walkEq, walkExpression, walkFunction, walkGt, walkGtEq, walkIn, walkIntegerLiteral, walkIsNotNull, walkIsNull, walkIsTrashed, walkLike, walkLiteral, walkLiteralList, walkLt, walkLtEq, walkMultiExpression, walkNot, walkNotEq, walkOperand, walkOr, walkStartsWithNonPath, walkStartsWithPath, walkStringLiteral
-
Field Details
-
ZERO
-
ONE
-
map
-
-
Constructor Details
-
MapExpressionEvaluator
public MapExpressionEvaluator()
-
-
Method Details
-
matchesEntry
-
unknownProperty
-
walkMixinTypes
Description copied from class:ExpressionEvaluator
Matches the mixin types against a list of values.Used for:
- ecm:mixinTypes = 'foo'
- ecm:mixinTypes != 'foo'
- ecm:mixinTypes IN ('foo', 'bar')
- ecm:mixinTypes NOT IN ('foo', 'bar')
- Specified by:
walkMixinTypes
in classExpressionEvaluator
- Parameters:
mixins
- the mixin(s) to matchinclude
-true
for = and IN
-
walkEcmFulltext
- Overrides:
walkEcmFulltext
in classExpressionEvaluator
-
walkEcmPath
- Overrides:
walkEcmPath
in classExpressionEvaluator
-
walkStartsWith
- Overrides:
walkStartsWith
in classExpressionEvaluator
-
walkAncestorId
- Overrides:
walkAncestorId
in classExpressionEvaluator
-
walkIsTrashed
- Overrides:
walkIsTrashed
in classExpressionEvaluator
-
walkReference
Description copied from class:ExpressionEvaluator
Evaluates a reference over the context state.- Specified by:
walkReference
in classExpressionEvaluator
- Parameters:
ref
- the reference
-