|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.AbstractOperation<SearchRequest,SearchResult>
org.ldaptive.SearchOperation
public class SearchOperation
Executes an ldap search operation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.ldaptive.AbstractOperation |
|---|
AbstractOperation.ReopenOperationExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.AbstractOperation |
|---|
logger |
| Constructor Summary | |
|---|---|
SearchOperation(Connection conn)
Creates a new search operation. |
|
SearchOperation(Connection conn,
Cache<SearchRequest> c)
Creates a new search operation. |
|
| Method Summary | |
|---|---|
protected Response<SearchResult> |
executeSearch(SearchRequest request)
Performs the ldap search. |
Cache<SearchRequest> |
getCache()
Returns the cache to check when performing search operations. |
protected Response<SearchResult> |
invoke(SearchRequest request)
Call the provider specific implementation of this ldap operation. |
protected SearchResult |
readResult(SearchRequest request,
SearchIterator si)
Invokes the provider search operation and iterates over the results. |
void |
setCache(Cache<SearchRequest> c)
Sets the cache. |
| Methods inherited from class org.ldaptive.AbstractOperation |
|---|
execute, executeHandlers, getConnection, getOperationExceptionHandler, getOperationResponseHandlers, setOperationExceptionHandler, setOperationResponseHandlers, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SearchOperation(Connection conn)
conn - connection
public SearchOperation(Connection conn,
Cache<SearchRequest> c)
conn - connectionc - cache| Method Detail |
|---|
public Cache<SearchRequest> getCache()
public void setCache(Cache<SearchRequest> c)
c - cache to set
protected Response<SearchResult> invoke(SearchRequest request)
throws LdapException
invoke in class AbstractOperation<SearchRequest,SearchResult>request - ldap request
LdapException - if the invocation fails
protected Response<SearchResult> executeSearch(SearchRequest request)
throws LdapException
request - to invoke search with
LdapException - if an error occurs
protected SearchResult readResult(SearchRequest request,
SearchIterator si)
throws LdapException
request - used to create the search iteratorsi - search iterator
LdapException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||