Package edu.vt.middleware.ldap.bean
Class AbstractLdapEntry
- java.lang.Object
-
- edu.vt.middleware.ldap.bean.AbstractLdapBean
-
- edu.vt.middleware.ldap.bean.AbstractLdapEntry
-
- All Implemented Interfaces:
LdapEntry
- Direct Known Subclasses:
OrderedLdapBeanFactory.OrderedLdapEntry
,SortedLdapBeanFactory.SortedLdapEntry
,UnorderedLdapBeanFactory.UnorderedLdapEntry
public abstract class AbstractLdapEntry extends AbstractLdapBean implements LdapEntry
AbstractLdapEntry
provides a base implementation ofLdapEntry
.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
dn
Distinguished name for this entry.protected static int
HASH_CODE_SEED
hash code seed.protected LdapAttributes
ldapAttributes
Attributes contained in this entry.-
Fields inherited from class edu.vt.middleware.ldap.bean.AbstractLdapBean
beanFactory, logger
-
-
Constructor Summary
Constructors Constructor Description AbstractLdapEntry(LdapBeanFactory lbf)
Creates a newAbstractLdapEntry
with the supplied ldap bean factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDn()
This returns the DN for thisLdapEntry
.LdapAttributes
getLdapAttributes()
This returns theLdapAttributes
for thisLdapEntry
.int
hashCode()
This returns the hash code for this object.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.java.lang.String
toString()
This returns a string representation of this object.-
Methods inherited from class edu.vt.middleware.ldap.bean.AbstractLdapBean
equals
-
-
-
-
Field Detail
-
HASH_CODE_SEED
protected static final int HASH_CODE_SEED
hash code seed.- See Also:
- Constant Field Values
-
dn
protected java.lang.String dn
Distinguished name for this entry.
-
ldapAttributes
protected LdapAttributes ldapAttributes
Attributes contained in this entry.
-
-
Constructor Detail
-
AbstractLdapEntry
public AbstractLdapEntry(LdapBeanFactory lbf)
Creates a newAbstractLdapEntry
with the supplied ldap bean factory.- Parameters:
lbf
-LdapBeanFactory
-
-
Method Detail
-
getDn
public java.lang.String getDn()
This returns the DN for thisLdapEntry
.
-
getLdapAttributes
public LdapAttributes getLdapAttributes()
This returns theLdapAttributes
for thisLdapEntry
.- Specified by:
getLdapAttributes
in interfaceLdapEntry
- Returns:
LdapAttributes
-
setEntry
public void setEntry(javax.naming.directory.SearchResult sr) throws javax.naming.NamingException
This sets thisLdapEntry
with the supplied search result.
-
setDn
public void setDn(java.lang.String dn)
This sets the DN for thisLdapEntry
.
-
setLdapAttributes
public void setLdapAttributes(LdapAttributes a)
This sets the attributes for thisLdapEntry
.- Specified by:
setLdapAttributes
in interfaceLdapEntry
- Parameters:
a
-LdapAttribute
-
hashCode
public int hashCode()
This returns the hash code for this object.- Specified by:
hashCode
in classAbstractLdapBean
- Returns:
int
-
toString
public java.lang.String toString()
This returns a string representation of this object.- Overrides:
toString
in classjava.lang.Object
- Returns:
String
-
toSearchResult
public javax.naming.directory.SearchResult toSearchResult()
This returns aSearchResult
that represents this entry.- Specified by:
toSearchResult
in interfaceLdapEntry
- Returns:
SearchResult
-
-