Class ResourceQuery.Exclusions

Object
se.curity.identityserver.sdk.data.query.ResourceQuery.AttributesEnumeration
se.curity.identityserver.sdk.data.query.ResourceQuery.Exclusions
Enclosing class:
ResourceQuery

public static final class ResourceQuery.Exclusions extends ResourceQuery.AttributesEnumeration
Enumeration of attributes to be excluded from a query result.
  • Method Details

    • none

      public static ResourceQuery.Exclusions none()
      Returns:
      the neutral instance of Exclusions which does not exclude any attribute.
    • of

      public static ResourceQuery.Exclusions of(Set<String> attributesToExclude)
      Creates an instance of Exclusions for the provided attributes.
      Parameters:
      attributesToExclude - exclusions
      Returns:
      Exclusions
    • keepAttribute

      public boolean keepAttribute(String key)
      Specified by:
      keepAttribute in class ResourceQuery.AttributesEnumeration
      Parameters:
      key - the attribute key. Nested attributes are addressed using the 'dot' notation.
      Returns:
      false if and only if the attribute should be excluded from the query results.
    • isNeutral

      public boolean isNeutral()
      Specified by:
      isNeutral in class ResourceQuery.AttributesEnumeration
      Returns:
      true if no attribute will be excluded.