public class ListResponseBuilder<T> extends Object implements SearchResultHandler<T>
| Constructor and Description |
|---|
ListResponseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ListResponse<T> |
build()
Builds a List Response.
|
void |
extension(String urn,
com.fasterxml.jackson.databind.node.ObjectNode extensionObjectNode)
Handle an schema extension in the search response.
|
void |
itemsPerPage(int itemsPerPage)
Handle the itemsPerPage in the search response.
|
boolean |
resource(T scimResource)
Handle a search result resource.
|
void |
startIndex(int startIndex)
Handle the startIndex in the search response.
|
void |
totalResults(int totalResults)
Handle the totalResults in the search response.
|
public ListResponseBuilder()
public void startIndex(int startIndex)
startIndex in interface SearchResultHandler<T>startIndex - The startIndex.public void itemsPerPage(int itemsPerPage)
itemsPerPage in interface SearchResultHandler<T>itemsPerPage - The itemsPerPage.public void totalResults(int totalResults)
totalResults in interface SearchResultHandler<T>totalResults - The totalResults.public boolean resource(T scimResource)
resource in interface SearchResultHandler<T>scimResource - A search result resource.true to continue processing the search result response or
false to immediate stop further processing of the response.public void extension(String urn, com.fasterxml.jackson.databind.node.ObjectNode extensionObjectNode)
extension in interface SearchResultHandler<T>urn - The URN of the extension schema.extensionObjectNode - The ObjectNode representing the extension
schema.public ListResponse<T> build()
Copyright © 2015–2021 Ping Identity Corporation. All rights reserved.