Class CopySearchResultHandler

    • Constructor Detail

      • CopySearchResultHandler

        public CopySearchResultHandler()
    • Method Detail

      • processResult

        protected javax.naming.directory.SearchResult processResult​(SearchCriteria sc,
                                                                    javax.naming.directory.SearchResult sr)
                                                             throws javax.naming.NamingException
        This will return a deep copy of the supplied SearchResult.
        Overrides:
        processResult in class CopyResultHandler<javax.naming.directory.SearchResult>
        Parameters:
        sc - SearchCriteria used to find enumeration
        sr - SearchResult to copy
        Returns:
        SearchResult
        Throws:
        javax.naming.NamingException - if the result cannot be read
      • processDn

        protected java.lang.String processDn​(SearchCriteria sc,
                                             javax.naming.directory.SearchResult sr)
        Process the dn of an ldap search result.
        Parameters:
        sc - SearchCriteria used to find search result
        sr - SearchResult to extract the dn from
        Returns:
        String processed dn
      • processAttributes

        protected javax.naming.directory.Attributes processAttributes​(SearchCriteria sc,
                                                                      javax.naming.directory.SearchResult sr)
                                                               throws javax.naming.NamingException
        Process the attributes of an ldap search.
        Parameters:
        sc - SearchCriteria used to find search result
        sr - SearchResult to extract the attributes from
        Returns:
        Attributes processed attributes
        Throws:
        javax.naming.NamingException - if the LDAP returns an error