Class FieldRoleMapperExpression
java.lang.Object
org.elasticsearch.client.security.support.expressiondsl.fields.FieldRoleMapperExpression
- All Implemented Interfaces:
RoleMapperExpression,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
An expression that evaluates to
true if a field (map element) matches
the provided values. A field expression may have more than one provided value, in which
case the expression is true if any of the values are matched.
Expression builder example:
final RoleMapperExpression usernameExpression = FieldRoleMapperExpression.ofUsername("user1@example.org");
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetField()inthashCode()static FieldRoleMapperExpressionstatic FieldRoleMapperExpressionstatic FieldRoleMapperExpressionofKeyValues(String key, Object... values) static FieldRoleMapperExpressionofMetadata(String key, Object... values) static FieldRoleMapperExpressionofUsername(Object... values) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
FieldRoleMapperExpression
-
-
Method Details
-
getField
-
getValues
-
equals
-
hashCode
public int hashCode() -
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
ofUsername
-
ofGroups
-
ofDN
-
ofMetadata
-
ofKeyValues
-