Class ResourceQuery.AttributesEnumeration

Object
se.curity.identityserver.sdk.data.query.ResourceQuery.AttributesEnumeration
Direct Known Subclasses:
ResourceQuery.Exclusions, ResourceQuery.Inclusions
Enclosing class:
ResourceQuery

public abstract static class ResourceQuery.AttributesEnumeration extends Object
A query for specific attributes. It might represent ResourceQuery.Inclusions or ResourceQuery.Exclusions.

This type must not be sub-typed by any other types. Attempting to override it will cause a IllegalStateException when an instance of the illegal type is instantiated.

  • Method Details

    • getAttributes

      public Set<String> getAttributes()
      Returns:
      the attributes in this enumeration.
    • keepAttribute

      public abstract boolean keepAttribute(String key)
      Parameters:
      key - the attribute key. Nested attributes are addressed using the 'dot' notation.
      Returns:
      true if the given attribute should be kept in the results, false to remove it.
    • isNeutral

      public abstract boolean isNeutral()
      Returns:
      true if this enumeration should cause no change in the results.
    • toString

      public String toString()
      Overrides:
      toString in class Object