Class RecursiveAttributeHandler

  • All Implemented Interfaces:
    AttributeHandler, ExtendedAttributeHandler, ResultHandler<javax.naming.directory.Attribute,​javax.naming.directory.Attribute>

    public class RecursiveAttributeHandler
    extends CopyAttributeHandler
    implements ExtendedAttributeHandler
    RecursiveAttributeHandler will recursively search for attributes of the same name and combine them into one attribute. Attribute values must represent DNs in the LDAP.
    Version:
    $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
    Author:
    Middleware Services
    • Constructor Detail

      • RecursiveAttributeHandler

        public RecursiveAttributeHandler​(java.lang.String attrName)
        Creates a new RecursiveAttributeHandler with the supplied attribute name.
        Parameters:
        attrName - String
      • RecursiveAttributeHandler

        public RecursiveAttributeHandler​(Ldap l,
                                         java.lang.String attrName)
        Creates a new RecursiveAttributeHandler with the supplied ldap and attribute name.
        Parameters:
        l - Ldap
        attrName - String
    • Method Detail

      • getAttributeName

        public java.lang.String getAttributeName()
        Returns the attribute name that will be recursively searched on.
        Returns:
        String attribute name
      • setAttributeName

        public void setAttributeName​(java.lang.String s)
        Sets the attribute name that will be recursively searched on.
        Parameters:
        s - String
      • processResult

        protected javax.naming.directory.Attribute processResult​(SearchCriteria sc,
                                                                 javax.naming.directory.Attribute attr)
                                                          throws javax.naming.NamingException
        This will return a deep copy of the supplied Attribute.
        Overrides:
        processResult in class CopyAttributeHandler
        Parameters:
        sc - SearchCriteria used to find enumeration
        attr - Attribute to copy
        Returns:
        Attribute
        Throws:
        javax.naming.NamingException - if the attribute values cannot be read