Module org.elasticsearch.xcore
Class ExpressionModel
java.lang.Object
org.elasticsearch.xpack.core.security.authc.support.mapper.expressiondsl.ExpressionModel
Represents the "model" object to be evaluated within a
RoleMapperExpression.
The model is a flat object, where fields are defined by strings and value is either a
string, boolean, or number, or a collection of the above.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()defineField(String name, Object value) Defines a field using a predicate that corresponds to the type ofvaluedefineField(String name, Object value, Predicate<FieldExpression.FieldValue> predicate) Defines a field using a supplied predicate.booleantest(String field, List<FieldExpression.FieldValue> values) Returnstrueif the named field, matches any of the provided values.toString()
-
Field Details
-
NULL_PREDICATE
-
-
Constructor Details
-
ExpressionModel
public ExpressionModel()
-
-
Method Details
-
defineField
Defines a field using a predicate that corresponds to the type ofvalue- See Also:
-
defineField
public ExpressionModel defineField(String name, Object value, Predicate<FieldExpression.FieldValue> predicate) Defines a field using a supplied predicate. -
test
Returnstrueif the named field, matches any of the provided values. -
asMap
-
toString
-