Package org.forgerock.json.resource
Class IdentifierQueryResourceHandler
java.lang.Object
org.forgerock.json.resource.IdentifierQueryResourceHandler
- All Implemented Interfaces:
QueryResourceHandler
QueryResourceHandler
that searches for a specific identifier value.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the identifier being queried for.Gets theResourceResponse
query result.boolean
handleResource
(ResourceResponse resource) Invoked each time a matching JSON resource is returned from a query request.
-
Constructor Details
-
IdentifierQueryResourceHandler
Creates a newQueryResourceHandler
for the given identifier.- Parameters:
id
- Identifier to query for
-
-
Method Details
-
handleResource
Description copied from interface:QueryResourceHandler
Invoked each time a matching JSON resource is returned from a query request. More specifically, if a query request matches 10 resources, then this method will be invoked 10 times, once for each matching resource.Refer to
RequestHandler.handleQuery(org.forgerock.services.context.Context, QueryRequest, QueryResourceHandler)
for information regarding the concurrency and the order in which events are processed.- Specified by:
handleResource
in interfaceQueryResourceHandler
- Parameters:
resource
- The matching JSON resource.- Returns:
true
if this handler should continue to be notified of any remaining matching JSON resources, orfalse
if the remaining JSON resources should be skipped for some reason (e.g. a client side size limit has been reached).
-
getId
Gets the identifier being queried for.- Returns:
- Identifier
-
getResourceResponse
Gets theResourceResponse
query result.- Returns:
ResourceResponse
ornull
if not yet found
-