org.springframework.ldap
Interface SearchExecutor


public interface SearchExecutor

Interface for delegating an actual search operation. The typical implementation of executeSearch would be something like:

 SearchExecutor executor = new SearchExecutor(){
   public NamingEnumeration executeSearch(DirContext ctx) throws NamingException{
     return ctx.search(dn, filter, searchControls);
   }
 }
 

Author:
Mattias Arthursson
See Also:
LdapTemplate.search(SearchExecutor, NameClassPairCallbackHandler)

Method Summary
 javax.naming.NamingEnumeration executeSearch(javax.naming.directory.DirContext ctx)
          Execute the actual search.
 

Method Detail

executeSearch

javax.naming.NamingEnumeration executeSearch(javax.naming.directory.DirContext ctx)
                                             throws javax.naming.NamingException
Execute the actual search.

Parameters:
ctx - the DirContext on which to work.
Returns:
the NamingEnumeration resulting from the search operation.
Throws:
javax.naming.NamingException - if the search results in one.


Copyright 2002-2006. All Rights Reserved.