Class ToListResultsHandler
- java.lang.Object
-
- org.identityconnectors.test.common.ToListResultsHandler
-
- All Implemented Interfaces:
ResultsHandler
public final class ToListResultsHandler extends Object implements ResultsHandler
AResultsHandler
which stores all connector objects into a list retrievable withgetObjects()
.
-
-
Constructor Summary
Constructors Constructor Description ToListResultsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ConnectorObject>
getObjects()
boolean
handle(ConnectorObject object)
Invoked each time a matchingConnectorObject
is returned from a query request.
-
-
-
Method Detail
-
handle
public boolean handle(ConnectorObject object)
Description copied from interface:ResultsHandler
Invoked each time a matchingConnectorObject
is returned from a query request.- Specified by:
handle
in interfaceResultsHandler
- Parameters:
object
- The matching ConnectorObject.- Returns:
true
if this handler should continue to be notified of any remaining matching ConnectorObjects, orfalse
if the remaining ConnectorObjects should be skipped for some reason (e.g. a client side size limit has been reached or the failed to handle the last item). If returnsfalse
the last items should be considers unhandled and in next page request it should be the first item.
-
getObjects
public List<ConnectorObject> getObjects()
-
-