edu.vt.middleware.ldap.bean
Interface LdapEntry

All Known Implementing Classes:
AbstractLdapEntry, OrderedLdapBeanFactory.OrderedLdapEntry, SortedLdapBeanFactory.SortedLdapEntry, UnorderedLdapBeanFactory.UnorderedLdapEntry

public interface LdapEntry

LdapEntry represents a single ldap entry.

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

Method Summary
 String getDn()
          This returns the DN for this LdapEntry.
 LdapAttributes getLdapAttributes()
          This returns the LdapAttributes for this LdapEntry.
 void setDn(String dn)
          This sets the DN for this LdapEntry.
 void setEntry(SearchResult sr)
          This sets this LdapEntry with the supplied search result.
 void setLdapAttributes(LdapAttributes a)
          This sets the attributes for this LdapEntry.
 SearchResult toSearchResult()
          This returns a SearchResult that represents this entry.
 

Method Detail

getDn

String getDn()
This returns the DN for this LdapEntry.

Returns:
String

getLdapAttributes

LdapAttributes getLdapAttributes()
This returns the LdapAttributes for this LdapEntry.

Returns:
LdapAttributes

setEntry

void setEntry(SearchResult sr)
              throws NamingException
This sets this LdapEntry with the supplied search result.

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

setDn

void setDn(String dn)
This sets the DN for this LdapEntry.

Parameters:
dn - String

setLdapAttributes

void setLdapAttributes(LdapAttributes a)
This sets the attributes for this LdapEntry.

Parameters:
a - LdapAttribute

toSearchResult

SearchResult toSearchResult()
This returns a SearchResult that represents this entry.

Returns:
SearchResult


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