|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ldaptemplate.CollectingSearchResultCallbackHandler
A SearchResultCallbackHandler to collect all results in an internal List.
Useful in combination with e.g. an
AttributesMapper
or
ContextMapper
.
LdapTemplate
,
LdapTemplate.AttributesMapperCallbackHandler
,
LdapTemplate.ContextMapperCallbackHandler
Constructor Summary | |
CollectingSearchResultCallbackHandler()
|
Method Summary | |
java.util.List |
getList()
Get the assembled list. |
protected abstract java.lang.Object |
getObjectFromResult(javax.naming.directory.SearchResult searchResult)
Handle a single search result and transform it to an Object. |
void |
handleSearchResult(javax.naming.directory.SearchResult searchResult)
Handle this entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectingSearchResultCallbackHandler()
Method Detail |
public void handleSearchResult(javax.naming.directory.SearchResult searchResult)
SearchResultCallbackHandler
handleSearchResult
in interface SearchResultCallbackHandler
searchResult
- the searchResult.protected abstract java.lang.Object getObjectFromResult(javax.naming.directory.SearchResult searchResult)
searchResult
- a SearchResult from a search operation.
public java.util.List getList()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |