Class ListBuilder<T extends ResourceNode>
java.lang.Object
de.captaingoldfish.scim.sdk.client.builder.ListBuilder<T>
author Pascal Knueppel
created at: 16.12.2019 - 13:00
a builder that can be used to build a list request
created at: 16.12.2019 - 13:00
a builder that can be used to build a list request
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassListBuilder.FilterBuilder<T extends ResourceNode>used to build a filter expressionstatic classListBuilder.GetRequestBuilder<T extends ResourceNode>a request builder that builds the list-request as a http-get requeststatic classListBuilder.ListServerResponse<T extends ResourceNode>overrides the translation of the returned resource from the serverstatic classListBuilder.PostRequestBuilder<T extends ResourceNode>a request builder that builds the list-request as a http-post request -
Constructor Summary
ConstructorsConstructorDescriptionListBuilder(String fullUrl, Class<T> responseEntityType, ScimHttpClient scimHttpClient) if the resource should be retrieved by using the fully qualified urlListBuilder(String baseUrl, String endpoint, Class<T> responseEntityType, ScimHttpClient scimHttpClient) -
Method Summary
Modifier and TypeMethodDescriptionattributes(String... attributeNames) adds the attributes that should be returned by the service providercount(int count) sets the count parameter for the maximum number of entries that should be returnedadds additional custom parameters to the request that are unknown by the SCIM specificationexcludedAttributes(String... attributeNames) adds the excluded attributes that should not be returned by the service providerfilter()creates a new filter-builder that can be used to create filter expressionsfilter(boolean openParanthesis, String attributeName, Comparator comparator, String value) creates a new filter-builder that can be used to create filter expressionssets the given filter as attributefilter(String attributeName, Comparator comparator, String value) creates a new filter-builder that can be used to create filter expressionsget()list requests can be either send with a get-request or a post requestthe parameters that will be used for the list requestpost()list requests can be either send with a get-request or a post requestsets the attribute name that should be used for sorting the entriessets the sorting order of the resourcesstartIndex(long startIndex) sets the startIndex parameter for the first entry that should be returned
-
Constructor Details
-
ListBuilder
if the resource should be retrieved by using the fully qualified url- Parameters:
fullUrl- the fully qualified url to the required resourceresponseEntityType- the type of the resource that should be returnedscimHttpClient- the http client instance
-
ListBuilder
public ListBuilder(String baseUrl, String endpoint, Class<T> responseEntityType, ScimHttpClient scimHttpClient)
-
-
Method Details
-
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
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
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
sets the sorting order of the resources- Parameters:
sortOrder- the sorting order of the resources
-
attributes
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
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
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
sets the given filter as attribute -
custom
adds additional custom parameters to the request that are unknown by the SCIM specification- Parameters:
attributeName- the name of the attribute to addattribute- 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
the parameters that will be used for the list request
-