Class RoleMapperExpressionParser

java.lang.Object
org.elasticsearch.client.security.support.expressiondsl.parser.RoleMapperExpressionParser

public final class RoleMapperExpressionParser extends Object
Parses the JSON (XContent) based boolean expression DSL into a tree of RoleMapperExpression 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 Details

    • FIELD

      public static final org.elasticsearch.xcontent.ParseField FIELD
  • Constructor Details

    • RoleMapperExpressionParser

      public RoleMapperExpressionParser()
  • Method Details

    • fromXContent

      public static RoleMapperExpression fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • parseObject

      public static RoleMapperExpression parseObject(org.elasticsearch.xcontent.XContentParser parser, String id) throws IOException
      This function exists to be compatible with ContextParser.parse(XContentParser, Object)
      Throws:
      IOException
    • parse

      public RoleMapperExpression parse(String name, org.elasticsearch.xcontent.XContentParser parser) throws 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:
      IOException