edu.vt.middleware.ldap.bean
public abstract class AbstractLdapEntry extends AbstractLdapBean implements LdapEntry
AbstractLdapEntry provides a base implementation of
LdapEntry.| Modifier and Type | Field and 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.
|
beanFactory, logger| Constructor and Description |
|---|
AbstractLdapEntry(LdapBeanFactory lbf)
Creates a new
AbstractLdapEntry with the supplied ldap bean
factory. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDn()
This returns the DN for this
LdapEntry. |
LdapAttributes |
getLdapAttributes()
This returns the
LdapAttributes for this
LdapEntry. |
int |
hashCode()
This returns the hash code for this object.
|
void |
setDn(java.lang.String dn)
This sets the DN for this
LdapEntry. |
void |
setEntry(javax.naming.directory.SearchResult sr)
This sets this
LdapEntry with the supplied search result. |
void |
setLdapAttributes(LdapAttributes a)
This sets the attributes for this
LdapEntry. |
javax.naming.directory.SearchResult |
toSearchResult()
This returns a
SearchResult that represents this entry. |
java.lang.String |
toString()
This returns a string representation of this object.
|
equalsprotected static final int HASH_CODE_SEED
protected java.lang.String dn
protected LdapAttributes ldapAttributes
public AbstractLdapEntry(LdapBeanFactory lbf)
AbstractLdapEntry with the supplied ldap bean
factory.lbf - LdapBeanFactorypublic java.lang.String getDn()
LdapEntry.public LdapAttributes getLdapAttributes()
LdapAttributes for this
LdapEntry.getLdapAttributes in interface LdapEntryLdapAttributespublic void setEntry(javax.naming.directory.SearchResult sr)
throws javax.naming.NamingException
LdapEntry with the supplied search result.public void setDn(java.lang.String dn)
LdapEntry.public void setLdapAttributes(LdapAttributes a)
LdapEntry.setLdapAttributes in interface LdapEntrya - LdapAttributepublic int hashCode()
hashCode in class AbstractLdapBeanintpublic java.lang.String toString()
toString in class java.lang.ObjectStringpublic javax.naming.directory.SearchResult toSearchResult()
SearchResult that represents this entry.toSearchResult in interface LdapEntrySearchResultCopyright © 2014. All Rights Reserved.