Spring LDAP Framework

org.springframework.ldap.core
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 Hellborg Arthursson
See Also:
LdapTemplate.search(SearchExecutor, NameClassPairCallbackHandler)

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

Method Detail

executeSearch

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

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

Spring LDAP Framework

Copyright © 2005-2010 The Spring LDAP Framework. All Rights Reserved.