Class 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
      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

    • getName

      public java.lang.String getName()
    • getExpression

      public RoleMapperExpression getExpression()
    • getRoles

      public java.util.List<java.lang.String> getRoles()
    • getRoleTemplates

      public java.util.List<TemplateRoleName> getRoleTemplates()
    • getMetadata

      public java.util.Map<java.lang.String,​java.lang.Object> getMetadata()
    • isEnabled

      public boolean isEnabled()
    • equals

      public boolean equals​(java.lang.Object o)
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      hashCode in class java.lang.Object