public class SearchTemplatesExecutor extends Object
Modifier and Type | Field and Description |
---|---|
private PooledConnectionFactory[] |
connectionFactories
Connection factory.
|
protected Logger |
logger
Logger for this class.
|
private AggregatePooledSearchExecutor |
searchExecutor
Search executor.
|
private SearchTemplates[] |
searchTemplates
Search templates.
|
Constructor and Description |
---|
SearchTemplatesExecutor()
Default constructor.
|
SearchTemplatesExecutor(AggregatePooledSearchExecutor executor,
PooledConnectionFactory[] factories,
SearchTemplates... templates)
Creates a new templates search executor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes any resources associated with this object.
|
PooledConnectionFactory[] |
getConnectionFactories()
Returns the connection factories.
|
AggregatePooledSearchExecutor |
getSearchExecutor()
Returns the search executor.
|
SearchTemplates[] |
getSearchTemplates()
Returns the search templates.
|
SearchResult |
search(Query query)
Applies the supplied query to a search templates and aggregates all results into a single search result.
|
protected SearchResult |
search(SearchFilter[] filters,
String[] returnAttrs,
Integer fromResult,
Integer toResult)
Performs an LDAP search with the supplied filters and aggregates all the search results together.
|
void |
setConnectionFactories(PooledConnectionFactory[] factories)
Sets the connection factories.
|
void |
setSearchExecutor(AggregatePooledSearchExecutor executor)
Sets the search executor.
|
void |
setSearchTemplates(SearchTemplates[] templates)
Sets the search templates.
|
String |
toString() |
protected final Logger logger
private AggregatePooledSearchExecutor searchExecutor
private PooledConnectionFactory[] connectionFactories
private SearchTemplates[] searchTemplates
public SearchTemplatesExecutor()
public SearchTemplatesExecutor(AggregatePooledSearchExecutor executor, PooledConnectionFactory[] factories, SearchTemplates... templates)
executor
- aggregate pooled search executorfactories
- pooled connection factoriestemplates
- search templatespublic AggregatePooledSearchExecutor getSearchExecutor()
public void setSearchExecutor(AggregatePooledSearchExecutor executor)
executor
- aggregate pooled search executorpublic PooledConnectionFactory[] getConnectionFactories()
public void setConnectionFactories(PooledConnectionFactory[] factories)
factories
- pooled connection factorypublic SearchTemplates[] getSearchTemplates()
public void setSearchTemplates(SearchTemplates[] templates)
templates
- search templatespublic SearchResult search(Query query) throws LdapException
query
- to executeLdapException
- if the search failsprotected SearchResult search(SearchFilter[] filters, String[] returnAttrs, Integer fromResult, Integer toResult) throws LdapException
filters
- to executereturnAttrs
- attributes to return from the searchfromResult
- index to return results fromtoResult
- index to return results toLdapException
- if the search failspublic void close()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.