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
AbstractLdapEntryprovides 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.StringdnDistinguished name for this entry.protected static intHASH_CODE_SEEDhash code seed.protected LdapAttributesldapAttributesAttributes 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 newAbstractLdapEntrywith the supplied ldap bean factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDn()This returns the DN for thisLdapEntry.LdapAttributesgetLdapAttributes()This returns theLdapAttributesfor thisLdapEntry.inthashCode()This returns the hash code for this object.voidsetDn(java.lang.String dn)This sets the DN for thisLdapEntry.voidsetEntry(javax.naming.directory.SearchResult sr)This sets thisLdapEntrywith the supplied search result.voidsetLdapAttributes(LdapAttributes a)This sets the attributes for thisLdapEntry.javax.naming.directory.SearchResulttoSearchResult()This returns aSearchResultthat represents this entry.java.lang.StringtoString()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 newAbstractLdapEntrywith 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 theLdapAttributesfor thisLdapEntry.- Specified by:
getLdapAttributesin interfaceLdapEntry- Returns:
LdapAttributes
-
setEntry
public void setEntry(javax.naming.directory.SearchResult sr) throws javax.naming.NamingExceptionThis sets thisLdapEntrywith 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:
setLdapAttributesin interfaceLdapEntry- Parameters:
a-LdapAttribute
-
hashCode
public int hashCode()
This returns the hash code for this object.- Specified by:
hashCodein classAbstractLdapBean- Returns:
int
-
toString
public java.lang.String toString()
This returns a string representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
String
-
toSearchResult
public javax.naming.directory.SearchResult toSearchResult()
This returns aSearchResultthat represents this entry.- Specified by:
toSearchResultin interfaceLdapEntry- Returns:
SearchResult
-
-