|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.templates.SearchTemplatesExecutor
public class SearchTemplatesExecutor
Searches an LDAP using a defined set of search templates. For each term count some number of templates are defined and used for searching.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
SearchTemplatesExecutor()
Default constructor. |
|
SearchTemplatesExecutor(org.ldaptive.concurrent.AggregatePooledSearchExecutor executor,
org.ldaptive.pool.PooledConnectionFactory[] factories,
SearchTemplates... templates)
Creates a new templates search executor. |
|
| Method Summary | |
|---|---|
void |
close()
Closes any resources associated with this object. |
org.ldaptive.pool.PooledConnectionFactory[] |
getConnectionFactories()
Returns the connection factories. |
org.ldaptive.concurrent.AggregatePooledSearchExecutor |
getSearchExecutor()
Returns the search executor. |
SearchTemplates[] |
getSearchTemplates()
Returns the search templates. |
org.ldaptive.SearchResult |
search(Query query)
Applies the supplied query to a search templates and aggregates all results into a single search result. |
protected org.ldaptive.SearchResult |
search(org.ldaptive.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(org.ldaptive.pool.PooledConnectionFactory[] factories)
Sets the connection factories. |
void |
setSearchExecutor(org.ldaptive.concurrent.AggregatePooledSearchExecutor executor)
Sets the search executor. |
void |
setSearchTemplates(SearchTemplates[] templates)
Sets the search templates. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public SearchTemplatesExecutor()
public SearchTemplatesExecutor(org.ldaptive.concurrent.AggregatePooledSearchExecutor executor,
org.ldaptive.pool.PooledConnectionFactory[] factories,
SearchTemplates... templates)
executor - aggregate pooled search executorfactories - pooled connection factoriestemplates - search templates| Method Detail |
|---|
public org.ldaptive.concurrent.AggregatePooledSearchExecutor getSearchExecutor()
public void setSearchExecutor(org.ldaptive.concurrent.AggregatePooledSearchExecutor executor)
executor - aggregate pooled search executorpublic org.ldaptive.pool.PooledConnectionFactory[] getConnectionFactories()
public void setConnectionFactories(org.ldaptive.pool.PooledConnectionFactory[] factories)
factories - pooled connection factorypublic SearchTemplates[] getSearchTemplates()
public void setSearchTemplates(SearchTemplates[] templates)
templates - search templates
public org.ldaptive.SearchResult search(Query query)
throws org.ldaptive.LdapException
query - to execute
org.ldaptive.LdapException - if the search fails
protected org.ldaptive.SearchResult search(org.ldaptive.SearchFilter[] filters,
String[] returnAttrs,
Integer fromResult,
Integer toResult)
throws org.ldaptive.LdapException
filters - to executereturnAttrs - attributes to return from the searchfromResult - index to return results fromtoResult - index to return results to
org.ldaptive.LdapException - if the search failspublic void close()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||