Class ListBuilder<T extends ResourceNode>

java.lang.Object
de.captaingoldfish.scim.sdk.client.builder.ListBuilder<T>

public class ListBuilder<T extends ResourceNode> extends Object
author Pascal Knueppel
created at: 16.12.2019 - 13:00

a builder that can be used to build a list request
  • Constructor Details

    • ListBuilder

      public ListBuilder(String fullUrl, Class<T> responseEntityType, ScimHttpClient scimHttpClient)
      if the resource should be retrieved by using the fully qualified url
      Parameters:
      fullUrl - the fully qualified url to the required resource
      responseEntityType - the type of the resource that should be returned
      scimHttpClient - the http client instance
    • ListBuilder

      public ListBuilder(String baseUrl, String endpoint, Class<T> responseEntityType, ScimHttpClient scimHttpClient)
  • Method Details

    • count

      public ListBuilder<T> count(int count)
      sets the count parameter for the maximum number of entries that should be returned
      Parameters:
      count - the maximum number of entries that should be returned
    • startIndex

      public ListBuilder<T> startIndex(long startIndex)
      sets the startIndex parameter for the first entry that should be returned
      Parameters:
      startIndex - the start index from which the entries should be returned
    • sortBy

      public ListBuilder<T> sortBy(String sortBy)
      sets the attribute name that should be used for sorting the entries
      Parameters:
      sortBy - the attribute name that should be used for sorting the entries
    • sortOrder

      public ListBuilder<T> sortOrder(SortOrder sortOrder)
      sets the sorting order of the resources
      Parameters:
      sortOrder - the sorting order of the resources
    • attributes

      public ListBuilder<T> attributes(String... attributeNames)
      adds the attributes that should be returned by the service provider
      Parameters:
      attributeNames - the names of the attributes that should be returned by the service provider
    • excludedAttributes

      public ListBuilder<T> excludedAttributes(String... attributeNames)
      adds the excluded attributes that should not be returned by the service provider
      Parameters:
      attributeNames - the names of the excluded attributes that should not be returned by the service provider
    • filter

      public ListBuilder<T>.FilterBuilder<T> filter()
      creates a new filter-builder that can be used to create filter expressions
    • filter

      public ListBuilder<T>.FilterBuilder<T> filter(String attributeName, Comparator comparator, String value)
      creates a new filter-builder that can be used to create filter expressions
    • filter

      public ListBuilder<T>.FilterBuilder<T> filter(boolean openParanthesis, String attributeName, Comparator comparator, String value)
      creates a new filter-builder that can be used to create filter expressions
    • filter

      public ListBuilder<T> filter(String filter)
      sets the given filter as attribute
    • custom

      public ListBuilder<T> custom(String attributeName, String attribute)
      adds additional custom parameters to the request that are unknown by the SCIM specification
      Parameters:
      attributeName - the name of the attribute to add
      attribute - the value of the attribute to add
    • get

      list requests can be either send with a get-request or a post request
      Returns:
      a get-request builder
    • post

      list requests can be either send with a get-request or a post request
      Returns:
      a post-request builder
    • getRequestParameters

      protected Map<String,String> getRequestParameters()
      the parameters that will be used for the list request