Class ListResponseBuilder<T>
- java.lang.Object
-
- com.unboundid.scim2.client.requests.ListResponseBuilder<T>
-
- All Implemented Interfaces:
SearchResultHandler<T>
public class ListResponseBuilder<T> extends Object implements SearchResultHandler<T>
A builder for ListResponses that is also a SearchResultHandler implementation.
-
-
Constructor Summary
Constructors Constructor Description ListResponseBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListResponse<T>build()Builds a List Response.voidextension(String urn, com.fasterxml.jackson.databind.node.ObjectNode extensionObjectNode)Handle a schema extension in the search response.voiditemsPerPage(int itemsPerPage)Handle the itemsPerPage in the search response.booleanresource(T scimResource)Handle a search result resource.voidstartIndex(int startIndex)Handle the startIndex in the search response.voidtotalResults(int totalResults)Handle the totalResults in the search response.
-
-
-
Constructor Detail
-
ListResponseBuilder
public ListResponseBuilder()
-
-
Method Detail
-
startIndex
public void startIndex(int startIndex)
Handle the startIndex in the search response.- Specified by:
startIndexin interfaceSearchResultHandler<T>- Parameters:
startIndex- The startIndex.
-
itemsPerPage
public void itemsPerPage(int itemsPerPage)
Handle the itemsPerPage in the search response.- Specified by:
itemsPerPagein interfaceSearchResultHandler<T>- Parameters:
itemsPerPage- The itemsPerPage.
-
totalResults
public void totalResults(int totalResults)
Handle the totalResults in the search response.- Specified by:
totalResultsin interfaceSearchResultHandler<T>- Parameters:
totalResults- The totalResults.
-
resource
public boolean resource(@NotNull T scimResource)
Handle a search result resource.- Specified by:
resourcein interfaceSearchResultHandler<T>- Parameters:
scimResource- A search result resource.- Returns:
trueto continue processing the search result response orfalseto immediate stop further processing of the response.
-
extension
public void extension(@NotNull String urn, @NotNull com.fasterxml.jackson.databind.node.ObjectNode extensionObjectNode)
Handle a schema extension in the search response.This method currently does not perform any action and should not be used.
- Specified by:
extensionin interfaceSearchResultHandler<T>- Parameters:
urn- The URN of the extension schema.extensionObjectNode- The ObjectNode representing the extension schema.
-
build
@NotNull public ListResponse<T> build()
Builds a List Response.- Returns:
- generated ListResponse.
-
-