|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.bean.AbstractLdapBean
edu.vt.middleware.ldap.bean.AbstractLdapResult<T>
T - type of backing mappublic abstract class AbstractLdapResult<T extends Map<String,LdapEntry>>
AbstractLdapResult provides a base implementation of
LdapResult where the underlying entries are backed by a
Map.
| Field Summary | |
|---|---|
protected T |
entries
Entries contained in this result. |
protected static int |
HASH_CODE_SEED
hash code seed. |
| Fields inherited from class edu.vt.middleware.ldap.bean.AbstractLdapBean |
|---|
beanFactory, logger |
| Constructor Summary | |
|---|---|
AbstractLdapResult(LdapBeanFactory lbf)
Creates a new AbstractLdapResult with the supplied ldap bean
factory. |
|
| Method Summary | |
|---|---|
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 |
hashCode()
This returns the hash code for this object. |
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. |
String |
toString()
This returns a string representation of this object. |
| Methods inherited from class edu.vt.middleware.ldap.bean.AbstractLdapBean |
|---|
equals |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int HASH_CODE_SEED
protected T extends Map<String,LdapEntry> entries
| Constructor Detail |
|---|
public AbstractLdapResult(LdapBeanFactory lbf)
AbstractLdapResult with the supplied ldap bean
factory.
lbf - LdapBeanFactory| Method Detail |
|---|
public Collection<LdapEntry> getEntries()
Collection of LdapEntry for this
LdapResult.
getEntries in interface LdapResultCollectionpublic LdapEntry getEntry(String dn)
LdapEntry for this LdapResult
with the supplied DN.
getEntry in interface LdapResultdn - String
LdapEntrypublic void addEntry(LdapEntry e)
LdapResult.
addEntry in interface LdapResulte - LdapEntry
public void addEntry(SearchResult sr)
throws NamingException
LdapResult.
addEntry in interface LdapResultsr - SearchResult
NamingException - if the search results cannot be readpublic void addEntries(Collection<LdapEntry> c)
Collection of entries to this
LdapResult. The list should contain LdapEntry objects.
addEntries in interface LdapResultc - Collection
public void addEntries(NamingEnumeration<SearchResult> ne)
throws NamingException
NamingEnumeration of SearchResult to
this LdapResult.
addEntries in interface LdapResultne - NamingEnumeration
NamingException - if the search results cannot be read
public void addEntries(Iterator<SearchResult> i)
throws NamingException
Iterator of SearchResult to this
LdapResult.
addEntries in interface LdapResulti - Iterator
NamingException - if the search results cannot be readpublic int size()
size in interface LdapResultintpublic void clear()
LdapResult.
clear in interface LdapResultpublic int hashCode()
hashCode in class AbstractLdapBeanintpublic String toString()
toString in class ObjectStringpublic List<SearchResult> toSearchResults()
List of SearchResult that
represent the entries in this LdapResult.
toSearchResults in interface LdapResultList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||