Class ExpressionRoleMapping
java.lang.Object
org.elasticsearch.client.security.ExpressionRoleMapping
A representation of a single role-mapping.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExpressionRoleMapping(String name, RoleMapperExpression expr, List<String> roles, List<TemplateRoleName> templates, Map<String, Object> metadata, boolean enabled) Constructor for role mapping -
Method Summary
-
Constructor Details
-
ExpressionRoleMapping
public ExpressionRoleMapping(String name, RoleMapperExpression expr, List<String> roles, List<TemplateRoleName> templates, Map<String, Object> metadata, boolean enabled) Constructor for role mapping- Parameters:
name- role mapping nameexpr-RoleMapperExpressionExpression used for role mappingroles- list of roles to be associated with the usermetadata- metadata that helps to identify which roles are assigned to the userenabled- a flag whentruesignifies the role mapping is active
-
-
Method Details