edu.vt.middleware.ldap.handler
Interface ResultHandler<R,O>

Type Parameters:
R - type of result
O - type of output
All Known Subinterfaces:
AttributeHandler, ExtendedAttributeHandler, ExtendedSearchResultHandler, SearchResultHandler
All Known Implementing Classes:
AbstractResultHandler, BinaryAttributeHandler, BinarySearchResultHandler, CaseChangeAttributeHandler, CaseChangeSearchResultHandler, CopyAttributeHandler, CopyResultHandler, CopySearchResultHandler, EntryDnSearchResultHandler, FqdnSearchResultHandler, MergeSearchResultHandler, RecursiveAttributeHandler, RecursiveSearchResultHandler

public interface ResultHandler<R,O>

ResultHandler provides post search processing of ldap results.

Version:
$Revision: 1330 $
Author:
Middleware Services

Method Summary
 List<O> process(SearchCriteria sc, List<? extends R> l)
          Process the results from an ldap search.
 List<O> process(SearchCriteria sc, NamingEnumeration<? extends R> en)
          Process the results from an ldap search.
 List<O> process(SearchCriteria sc, NamingEnumeration<? extends R> en, Class<?>[] ignore)
          Process the results from an ldap search.
 

Method Detail

process

List<O> process(SearchCriteria sc,
                NamingEnumeration<? extends R> en)
                throws NamingException
Process the results from an ldap search.

Parameters:
sc - SearchCriteria used to perform the search
en - NamingEnumeration of search results
Returns:
List of result objects
Throws:
NamingException - if the LDAP returns an error

process

List<O> process(SearchCriteria sc,
                NamingEnumeration<? extends R> en,
                Class<?>[] ignore)
                throws NamingException
Process the results from an ldap search.

Parameters:
sc - SearchCriteria used to perform the search
en - NamingEnumeration of search results
ignore - Class[] of exception types to ignore results
Returns:
List of result objects
Throws:
NamingException - if the LDAP returns an error

process

List<O> process(SearchCriteria sc,
                List<? extends R> l)
                throws NamingException
Process the results from an ldap search.

Parameters:
sc - SearchCriteria used to perform the search
l - List of search results
Returns:
List of result objects
Throws:
NamingException - if the LDAP returns an error


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.