edu.vt.middleware.ldap.bean
public interface LdapResult
LdapResult
represents a collection of ldap entries.Modifier and Type | Method and Description |
---|---|
void |
addEntries(java.util.Collection<LdapEntry> c)
This adds a
Collection of entries to this
LdapResult . |
void |
addEntries(java.util.Iterator<javax.naming.directory.SearchResult> i)
This adds an
Iterator of SearchResult to this
LdapResult . |
void |
addEntries(javax.naming.NamingEnumeration<javax.naming.directory.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(javax.naming.directory.SearchResult sr)
This adds a new entry to this
LdapResult . |
void |
clear()
This removes all entries from this
LdapResult . |
java.util.Collection<LdapEntry> |
getEntries()
This returns a
Collection of LdapEntry for this
LdapResult . |
LdapEntry |
getEntry(java.lang.String dn)
This returns the
LdapEntry for this LdapResult
with the supplied DN. |
int |
size()
This returns the number of entries in this result.
|
java.util.List<javax.naming.directory.SearchResult> |
toSearchResults()
This returns a
List of SearchResult that
represent the entries in this LdapResult . |
java.util.Collection<LdapEntry> getEntries()
Collection
of LdapEntry
for this
LdapResult
.Collection
LdapEntry getEntry(java.lang.String dn)
LdapEntry
for this LdapResult
with the supplied DN.dn
- String
LdapEntry
void addEntry(LdapEntry e)
LdapResult
.e
- LdapEntry
void addEntry(javax.naming.directory.SearchResult sr) throws javax.naming.NamingException
LdapResult
.sr
- SearchResult
javax.naming.NamingException
- if the search results cannot be readvoid addEntries(java.util.Collection<LdapEntry> c)
Collection
of entries to this
LdapResult
. The list should contain LdapEntry
objects.c
- Collection
void addEntries(javax.naming.NamingEnumeration<javax.naming.directory.SearchResult> ne) throws javax.naming.NamingException
NamingEnumeration
of SearchResult
to
this LdapResult
.ne
- NamingEnumeration
javax.naming.NamingException
- if the search results cannot be readvoid addEntries(java.util.Iterator<javax.naming.directory.SearchResult> i) throws javax.naming.NamingException
Iterator
of SearchResult
to this
LdapResult
.i
- Iterator
javax.naming.NamingException
- if the search results cannot be readint size()
int
void clear()
LdapResult
.java.util.List<javax.naming.directory.SearchResult> toSearchResults()
List
of SearchResult
that
represent the entries in this LdapResult
.List
Copyright © 2014. All Rights Reserved.