类 RoleMapperExpressionParser
java.lang.Object
org.easysearch.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 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.-
字段概要
字段 修饰符和类型 字段 说明 static org.easysearch.common.ParseFieldFIELD -
构造器概要
构造器 构造器 说明 RoleMapperExpressionParser() -
方法概要
修饰符和类型 方法 说明 static RoleMapperExpressionfromXContent(org.easysearch.common.xcontent.XContentParser parser)RoleMapperExpressionparse(java.lang.String name, org.easysearch.common.xcontent.XContentParser parser)static RoleMapperExpressionparseObject(org.easysearch.common.xcontent.XContentParser parser, java.lang.String id)This function exists to be compatible withContextParser.parse(XContentParser, Object)从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
字段详细资料
-
FIELD
public static final org.easysearch.common.ParseField FIELD
-
-
构造器详细资料
-
RoleMapperExpressionParser
public RoleMapperExpressionParser()
-
-
方法详细资料
-
fromXContent
public static RoleMapperExpression fromXContent(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException- 抛出:
java.io.IOException
-
parseObject
public static RoleMapperExpression parseObject(org.easysearch.common.xcontent.XContentParser parser, java.lang.String id) throws java.io.IOExceptionThis function exists to be compatible withContextParser.parse(XContentParser, Object)- 抛出:
java.io.IOException
-
parse
public RoleMapperExpression parse(java.lang.String name, org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException- 参数:
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- 抛出:
java.io.IOException
-