public class SimpleSearchResults<T extends ScimResource> extends ListResponseStreamingOutput<T>
| Constructor and Description |
|---|
SimpleSearchResults(ResourceTypeDefinition resourceType,
javax.ws.rs.core.UriInfo uriInfo)
Create a new SimpleSearchResults for results from a search operation.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleSearchResults |
add(T resource)
Add a resource to include in the search results.
|
SimpleSearchResults |
addAll(Collection<T> resources)
Add resources to include in the search results.
|
void |
write(ListResponseWriter<T> os)
Start streaming the contents of the list response.
|
writepublic SimpleSearchResults(ResourceTypeDefinition resourceType, javax.ws.rs.core.UriInfo uriInfo) throws BadRequestException
resourceType - The resource type definition of result resources.uriInfo - The UriInfo from the search operation.BadRequestException - if the filter or paths in the search operation
is invalid.public SimpleSearchResults add(T resource) throws ScimException
resource - The resource to add.ScimException - If an error occurs during filtering or setting the
meta attributes.public SimpleSearchResults addAll(Collection<T> resources) throws ScimException
resources - The resources to add.ScimException - If an error occurs during filtering or setting the
meta attributes.public void write(ListResponseWriter<T> os) throws IOException
write in class ListResponseStreamingOutput<T extends ScimResource>os - The list response output stream used to stream back elements of
the list response.IOException - if an error occurs while writing.Copyright © 2015–2019 Ping Identity Corporation. All rights reserved.