Search in sources :

Example 1 with SearchResultHandler

use of org.forgerock.opendj.ldap.SearchResultHandler in project OpenAM by OpenRock.

the class ADBackend method handleSearch.

public void handleSearch(RequestContext requestContext, SearchRequest request, IntermediateResponseHandler intermediateResponseHandler, final SearchResultHandler searchHandler, final LdapResultHandler<Result> resultHandler) {
    SearchResultHandler fakeHandler = new SearchResultHandler() {

        public boolean handleEntry(SearchResultEntry entry) {
            return searchHandler.handleEntry(entry);
        }

        public boolean handleReference(SearchResultReference reference) {
            return searchHandler.handleReference(reference);
        }
    };
    backend.handleSearch(requestContext, request, intermediateResponseHandler, fakeHandler, resultHandler);
}
Also used : SearchResultReference(org.forgerock.opendj.ldap.responses.SearchResultReference) SearchResultHandler(org.forgerock.opendj.ldap.SearchResultHandler) SearchResultEntry(org.forgerock.opendj.ldap.responses.SearchResultEntry)

Aggregations

SearchResultHandler (org.forgerock.opendj.ldap.SearchResultHandler)1 SearchResultEntry (org.forgerock.opendj.ldap.responses.SearchResultEntry)1 SearchResultReference (org.forgerock.opendj.ldap.responses.SearchResultReference)1