Package 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-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDn()
This returns the DN for thisLdapEntry
.LdapAttributes
getLdapAttributes()
This returns theLdapAttributes
for thisLdapEntry
.void
setDn(java.lang.String dn)
This sets the DN for thisLdapEntry
.void
setEntry(javax.naming.directory.SearchResult sr)
This sets thisLdapEntry
with the supplied search result.void
setLdapAttributes(LdapAttributes a)
This sets the attributes for thisLdapEntry
.javax.naming.directory.SearchResult
toSearchResult()
This returns aSearchResult
that represents this entry.
-
-
-
Method Detail
-
getDn
java.lang.String getDn()
This returns the DN for thisLdapEntry
.- Returns:
String
-
getLdapAttributes
LdapAttributes getLdapAttributes()
This returns theLdapAttributes
for thisLdapEntry
.- Returns:
LdapAttributes
-
setEntry
void setEntry(javax.naming.directory.SearchResult sr) throws javax.naming.NamingException
This sets thisLdapEntry
with the supplied search result.- Parameters:
sr
-SearchResult
- Throws:
javax.naming.NamingException
- if the search result cannot be read
-
setDn
void setDn(java.lang.String dn)
This sets the DN for thisLdapEntry
.- Parameters:
dn
-String
-
setLdapAttributes
void setLdapAttributes(LdapAttributes a)
This sets the attributes for thisLdapEntry
.- Parameters:
a
-LdapAttribute
-
toSearchResult
javax.naming.directory.SearchResult toSearchResult()
This returns aSearchResult
that represents this entry.- Returns:
SearchResult
-
-