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.
|
equals
protected static final int HASH_CODE_SEED
protected String dn
protected LdapAttributes ldapAttributes
public AbstractLdapEntry(LdapBeanFactory lbf)
AbstractLdapEntry
with the supplied ldap bean
factory.lbf
- LdapBeanFactory
public String getDn()
LdapEntry
.public LdapAttributes getLdapAttributes()
LdapAttributes
for this
LdapEntry
.getLdapAttributes
in interface LdapEntry
LdapAttributes
public void setEntry(SearchResult sr) throws NamingException
LdapEntry
with the supplied search result.setEntry
in interface LdapEntry
sr
- SearchResult
NamingException
- if the search result cannot be readpublic void setDn(String dn)
LdapEntry
.public void setLdapAttributes(LdapAttributes a)
LdapEntry
.setLdapAttributes
in interface LdapEntry
a
- LdapAttribute
public int hashCode()
hashCode
in class AbstractLdapBean
int
public String toString()
public SearchResult toSearchResult()
SearchResult
that represents this entry.toSearchResult
in interface LdapEntry
SearchResult
Copyright © 2018. All rights reserved.