Class ExpressionRoleMapping

java.lang.Object
org.elasticsearch.client.security.ExpressionRoleMapping

public final class ExpressionRoleMapping
extends java.lang.Object
A representation of a single role-mapping.
See Also:
RoleMapperExpression, RoleMapperExpressionParser
  • Constructor Details

    • ExpressionRoleMapping

      public ExpressionRoleMapping​(java.lang.String name, RoleMapperExpression expr, java.util.List<java.lang.String> roles, java.util.List<TemplateRoleName> templates, java.util.Map<java.lang.String,​java.lang.Object> metadata, boolean enabled)
      Constructor for role mapping
      Parameters:
      name - role mapping name
      expr - RoleMapperExpression Expression used for role mapping
      roles - list of roles to be associated with the user
      metadata - metadata that helps to identify which roles are assigned to the user
      enabled - a flag when true signifies the role mapping is active
  • Method Details