edu.vt.middleware.ldap.bean
Interface LdapResult

All Known Implementing Classes:
AbstractLdapResult, OrderedLdapBeanFactory.OrderedLdapResult, SortedLdapBeanFactory.SortedLdapResult, UnorderedLdapBeanFactory.UnorderedLdapResult

public interface LdapResult

LdapResult represents a collection of ldap entries.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

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 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.
 

Method Detail

getEntries

Collection<LdapEntry> getEntries()
This returns a Collection of LdapEntry for this LdapResult.

Returns:
Collection

getEntry

LdapEntry getEntry(String dn)
This returns the LdapEntry for this LdapResult with the supplied DN.

Parameters:
dn - String
Returns:
LdapEntry

addEntry

void addEntry(LdapEntry e)
This adds a new entry to this LdapResult.

Parameters:
e - LdapEntry

addEntry

void addEntry(SearchResult sr)
              throws NamingException
This adds a new entry to this LdapResult.

Parameters:
sr - SearchResult
Throws:
NamingException - if the search results cannot be read

addEntries

void addEntries(Collection<LdapEntry> c)
This adds a Collection of entries to this LdapResult. The list should contain LdapEntry objects.

Parameters:
c - Collection

addEntries

void addEntries(NamingEnumeration<SearchResult> ne)
                throws NamingException
This adds a NamingEnumeration of SearchResult to this LdapResult.

Parameters:
ne - NamingEnumeration
Throws:
NamingException - if the search results cannot be read

addEntries

void addEntries(Iterator<SearchResult> i)
                throws NamingException
This adds an Iterator of SearchResult to this LdapResult.

Parameters:
i - Iterator
Throws:
NamingException - if the search results cannot be read

size

int size()
This returns the number of entries in this result.

Returns:
int

clear

void clear()
This removes all entries from this LdapResult.


toSearchResults

List<SearchResult> toSearchResults()
This returns a List of SearchResult that represent the entries in this LdapResult.

Returns:
List


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.