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
.Collection
LdapEntry getEntry(String dn)
LdapEntry
for this LdapResult
with the supplied DN.dn
- String
LdapEntry
void addEntry(LdapEntry e)
LdapResult
.e
- LdapEntry
void addEntry(SearchResult sr) throws NamingException
LdapResult
.sr
- SearchResult
NamingException
- if the search results cannot be readvoid addEntries(Collection<LdapEntry> c)
Collection
of entries to this
LdapResult
. The list should contain LdapEntry
objects.c
- Collection
void addEntries(NamingEnumeration<SearchResult> ne) throws NamingException
NamingEnumeration
of SearchResult
to
this LdapResult
.ne
- NamingEnumeration
NamingException
- if the search results cannot be readvoid addEntries(Iterator<SearchResult> i) throws NamingException
Iterator
of SearchResult
to this
LdapResult
.i
- Iterator
NamingException
- if the search results cannot be readint size()
int
void clear()
LdapResult
.List<SearchResult> toSearchResults()
List
of SearchResult
that
represent the entries in this LdapResult
.List
Copyright © 2018. All rights reserved.