public interface LdapResult
LdapResult represents a collection of ldap entries.| Modifier and Type | Method and Description |
|---|---|
void |
addEntries(Collection<LdapEntry> c)
This adds a
Collection of entries to this
LdapResult. |
void |
addEntries(Iterator<SearchResult> i)
This adds an
Iterator of SearchResult to this
LdapResult. |
void |
addEntries(NamingEnumeration<SearchResult> ne)
This adds a
NamingEnumeration of SearchResult to
this LdapResult. |
void |
addEntry(LdapEntry e)
This adds a new entry to this
LdapResult. |
void |
addEntry(SearchResult sr)
This adds a new entry to this
LdapResult. |
void |
clear()
This removes all entries from this
LdapResult. |
Collection<LdapEntry> |
getEntries()
This returns a
Collection of LdapEntry for this
LdapResult. |
LdapEntry |
getEntry(String dn)
This returns the
LdapEntry for this LdapResult
with the supplied DN. |
int |
size()
This returns the number of entries in this result.
|
List<SearchResult> |
toSearchResults()
This returns a
List of SearchResult that
represent the entries in this LdapResult. |
Collection<LdapEntry> getEntries()
Collection of LdapEntry for this
LdapResult.CollectionLdapEntry getEntry(String dn)
LdapEntry for this LdapResult
with the supplied DN.dn - StringLdapEntryvoid addEntry(LdapEntry e)
LdapResult.e - LdapEntryvoid addEntry(SearchResult sr) throws NamingException
LdapResult.sr - SearchResultNamingException - if the search results cannot be readvoid addEntries(Collection<LdapEntry> c)
Collection of entries to this
LdapResult. The list should contain LdapEntry objects.c - Collectionvoid addEntries(NamingEnumeration<SearchResult> ne) throws NamingException
NamingEnumeration of SearchResult to
this LdapResult.ne - NamingEnumerationNamingException - if the search results cannot be readvoid addEntries(Iterator<SearchResult> i) throws NamingException
Iterator of SearchResult to this
LdapResult.i - IteratorNamingException - if the search results cannot be readint size()
intvoid clear()
LdapResult.List<SearchResult> toSearchResults()
List of SearchResult that
represent the entries in this LdapResult.ListCopyright © 2014. All rights reserved.