Package org.ldaptive
Class AbstractSearchOperationFactory
- java.lang.Object
-
- org.ldaptive.AbstractSearchOperationFactory
-
- All Implemented Interfaces:
ConnectionFactoryManager
- Direct Known Subclasses:
AbstractSearchEntryResolver,PagedResultsClient,SearchDnResolver,SearchRoleResolver,VirtualListViewClient
public abstract class AbstractSearchOperationFactory extends java.lang.Object implements ConnectionFactoryManager
Base class for classes that perform searches.- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.LoggerloggerLogger for this class.
-
Constructor Summary
Constructors Constructor Description AbstractSearchOperationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SearchOperationcreateSearchOperation()Creates a new search operation configured with the properties on this factory.protected SearchOperationcreateSearchOperation(ConnectionFactory cf)Creates a new search operation configured with the properties on this factory.ConnectionFactorygetConnectionFactory()Returns the connection factory.LdapEntryHandler[]getEntryHandlers()Returns the search entry handlers.ExceptionHandlergetExceptionHandler()Returns the search exception handler.ResultHandler[]getResultHandlers()Returns the search result handlers.SearchResultHandler[]getSearchResultHandlers()Returns the search result handlers.voidsetConnectionFactory(ConnectionFactory cf)Sets the connection factory.voidsetEntryHandlers(LdapEntryHandler... handlers)Sets the search entry handlers.voidsetExceptionHandler(ExceptionHandler handler)Sets the search exception handler.voidsetResultHandlers(ResultHandler... handlers)Sets the search result handlers.voidsetSearchResultHandlers(SearchResultHandler... handlers)Sets the search result handlers.
-
-
-
Method Detail
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
Returns the connection factory.- Specified by:
getConnectionFactoryin interfaceConnectionFactoryManager- Returns:
- connection factory
-
setConnectionFactory
public void setConnectionFactory(ConnectionFactory cf)
Sets the connection factory.- Specified by:
setConnectionFactoryin interfaceConnectionFactoryManager- Parameters:
cf- connection factory
-
getEntryHandlers
public LdapEntryHandler[] getEntryHandlers()
Returns the search entry handlers.- Returns:
- search entry handlers
-
setEntryHandlers
public void setEntryHandlers(LdapEntryHandler... handlers)
Sets the search entry handlers.- Parameters:
handlers- search entry handlers
-
getExceptionHandler
public ExceptionHandler getExceptionHandler()
Returns the search exception handler.- Returns:
- search exception handler
-
setExceptionHandler
public void setExceptionHandler(ExceptionHandler handler)
Sets the search exception handler.- Parameters:
handler- search exception handler
-
getResultHandlers
public ResultHandler[] getResultHandlers()
Returns the search result handlers.- Returns:
- search result handlers
-
setResultHandlers
public void setResultHandlers(ResultHandler... handlers)
Sets the search result handlers.- Parameters:
handlers- search result handlers
-
getSearchResultHandlers
public SearchResultHandler[] getSearchResultHandlers()
Returns the search result handlers.- Returns:
- search result handlers
-
setSearchResultHandlers
public void setSearchResultHandlers(SearchResultHandler... handlers)
Sets the search result handlers.- Parameters:
handlers- search result handlers
-
createSearchOperation
protected SearchOperation createSearchOperation()
Creates a new search operation configured with the properties on this factory.- Returns:
- search operation
-
createSearchOperation
protected SearchOperation createSearchOperation(ConnectionFactory cf)
Creates a new search operation configured with the properties on this factory.- Parameters:
cf- connection factory to set on the search operation- Returns:
- search operation
-
-