Class ResourceQuery.Inclusions

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

public static final class ResourceQuery.Inclusions extends ResourceQuery.AttributesEnumeration
Enumeration of attributes to be included in a query result.
  • Method Details

    • of

      public static ResourceQuery.Inclusions of(Collection<String> attributesToInclude)
      Creates an instance of Inclusions for the provided attributes.
      Parameters:
      attributesToInclude - inclusions
      Returns:
      Inclusions
    • mandatoryOnly

      public static ResourceQuery.Inclusions mandatoryOnly()
      Returns:
      instance of Inclusions with only the mandatory inclusions for SCIM resources
    • 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:
      true if and only if the attribute should be included in the query results.
    • isNeutral

      public boolean isNeutral()
      Specified by:
      isNeutral in class ResourceQuery.AttributesEnumeration
      Returns:
      false, because Inclusions always include at least the mandatory attributes