Class AbstractLdapEntry

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractLdapEntry​(LdapBeanFactory lbf)
      Creates a new AbstractLdapEntry 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 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 new AbstractLdapEntry with the supplied ldap bean factory.
        Parameters:
        lbf - LdapBeanFactory
    • Method Detail

      • getDn

        public java.lang.String getDn()
        This returns the DN for this LdapEntry.
        Specified by:
        getDn in interface LdapEntry
        Returns:
        String
      • setEntry

        public void setEntry​(javax.naming.directory.SearchResult sr)
                      throws javax.naming.NamingException
        This sets this LdapEntry with the supplied search result.
        Specified by:
        setEntry in interface LdapEntry
        Parameters:
        sr - SearchResult
        Throws:
        javax.naming.NamingException - if the search result cannot be read
      • setDn

        public void setDn​(java.lang.String dn)
        This sets the DN for this LdapEntry.
        Specified by:
        setDn in interface LdapEntry
        Parameters:
        dn - String
      • setLdapAttributes

        public void setLdapAttributes​(LdapAttributes a)
        This sets the attributes for this LdapEntry.
        Specified by:
        setLdapAttributes in interface LdapEntry
        Parameters:
        a - LdapAttribute
      • hashCode

        public int hashCode()
        This returns the hash code for this object.
        Specified by:
        hashCode in class AbstractLdapBean
        Returns:
        int
      • toString

        public java.lang.String toString()
        This returns a string representation of this object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String
      • toSearchResult

        public javax.naming.directory.SearchResult toSearchResult()
        This returns a SearchResult that represents this entry.
        Specified by:
        toSearchResult in interface LdapEntry
        Returns:
        SearchResult