Class RoleMapperExpressionParser
- java.lang.Object
-
- org.elasticsearch.client.security.support.expressiondsl.parser.RoleMapperExpressionParser
-
public final class RoleMapperExpressionParser extends java.lang.Object
Parses the JSON (XContent) based boolean expression DSL into a tree ofRoleMapperExpression
objects. Note: As this is client side parser, it mostly validates the structure of DSL being parsed it does not enforce rules like allowing "except" within "except" or "any" expressions.
-
-
Field Summary
Fields Modifier and Type Field Description static ParseField
FIELD
-
Constructor Summary
Constructors Constructor Description RoleMapperExpressionParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RoleMapperExpression
fromXContent(XContentParser parser)
RoleMapperExpression
parse(java.lang.String name, XContentParser parser)
static RoleMapperExpression
parseObject(XContentParser parser, java.lang.String id)
This function exists to be compatible withContextParser.parse(XContentParser, Object)
-
-
-
Field Detail
-
FIELD
public static final ParseField FIELD
-
-
Method Detail
-
fromXContent
public static RoleMapperExpression fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
parseObject
public static RoleMapperExpression parseObject(XContentParser parser, java.lang.String id) throws java.io.IOException
This function exists to be compatible withContextParser.parse(XContentParser, Object)
- Throws:
java.io.IOException
-
parse
public RoleMapperExpression parse(java.lang.String name, XContentParser parser) throws java.io.IOException
- Parameters:
name
- The name of the expression tree within its containing object. Used to provide descriptive error messages.parser
- A parser over the XContent (typically JSON) DSL representation of the expression- Throws:
java.io.IOException
-
-