public abstract class AbstractLdapEntry extends AbstractLdapBean implements LdapEntry
AbstractLdapEntry provides a base implementation of
LdapEntry.| Modifier and Type | Field and Description |
|---|---|
protected 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 |
|---|---|
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(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. |
String |
toString()
This returns a string representation of this object.
|
equalsprotected static final int HASH_CODE_SEED
protected String dn
protected LdapAttributes ldapAttributes
public AbstractLdapEntry(LdapBeanFactory lbf)
AbstractLdapEntry with the supplied ldap bean
factory.lbf - LdapBeanFactorypublic String getDn()
LdapEntry.public LdapAttributes getLdapAttributes()
LdapAttributes for this
LdapEntry.getLdapAttributes in interface LdapEntryLdapAttributespublic void setEntry(SearchResult sr) throws NamingException
LdapEntry with the supplied search result.setEntry in interface LdapEntrysr - SearchResultNamingException - if the search result cannot be readpublic void setDn(String dn)
LdapEntry.public void setLdapAttributes(LdapAttributes a)
LdapEntry.setLdapAttributes in interface LdapEntrya - LdapAttributepublic int hashCode()
hashCode in class AbstractLdapBeanintpublic String toString()
public SearchResult toSearchResult()
SearchResult that represents this entry.toSearchResult in interface LdapEntrySearchResultCopyright © 2014. All rights reserved.