Class LdaptiveTemplate

    • Constructor Detail

      • LdaptiveTemplate

        public LdaptiveTemplate​(org.ldaptive.ConnectionFactory connectionFactory)
        Instantiates a new ldap template.
        Parameters:
        connectionFactory - the connection factory
    • Method Detail

      • setErrorHandler

        public void setErrorHandler​(org.springframework.util.ErrorHandler errorHandler)
        Sets error handler.
        Parameters:
        errorHandler - the error handler
      • clone

        public LdaptiveTemplate clone()
        Returns a new instance of this ldaptive template with the same connection factory and error handler.
        Overrides:
        clone in class Object
        Returns:
        a new instance of this ldaptive template
      • clone

        public LdaptiveTemplate clone​(org.springframework.util.ErrorHandler errorHandler)
        Returns a new instance of this ldaptive template with the same connection factory and the given error handler.
        Parameters:
        errorHandler - the new error handler
        Returns:
        the new instance of the ldaptive template
      • add

        public void add​(org.ldaptive.AddRequest request)
        Description copied from interface: LdaptiveOperations
        Executes add operation.
        Specified by:
        add in interface LdaptiveOperations
        Parameters:
        request - the add request
      • bind

        public boolean bind​(org.ldaptive.BindRequest request)
        Description copied from interface: LdaptiveOperations
        Executes bind operation.
        Specified by:
        bind in interface LdaptiveOperations
        Parameters:
        request - the request
        Returns:
        the boolean
      • compare

        public boolean compare​(org.ldaptive.CompareRequest request)
        Description copied from interface: LdaptiveOperations
        Executes compare operation.
        Specified by:
        compare in interface LdaptiveOperations
        Parameters:
        request - the request
        Returns:
        the boolean
      • delete

        public void delete​(org.ldaptive.DeleteRequest request)
        Description copied from interface: LdaptiveOperations
        Executes delete operation.
        Specified by:
        delete in interface LdaptiveOperations
        Parameters:
        request - the request
      • executeExtension

        public org.ldaptive.extended.ExtendedResponse executeExtension​(org.ldaptive.extended.ExtendedRequest request)
        Description copied from interface: LdaptiveOperations
        Executes an extended request.
        Specified by:
        executeExtension in interface LdaptiveOperations
        Parameters:
        request - the request
        Returns:
        the extended response
      • modify

        public void modify​(org.ldaptive.ModifyRequest request)
        Description copied from interface: LdaptiveOperations
        Executes modify operation.
        Specified by:
        modify in interface LdaptiveOperations
        Parameters:
        request - the request
      • modifyDn

        public void modifyDn​(org.ldaptive.ModifyDnRequest request)
        Description copied from interface: LdaptiveOperations
        Executes modify dn operation.
        Specified by:
        modifyDn in interface LdaptiveOperations
        Parameters:
        request - the request
      • search

        public org.ldaptive.SearchResponse search​(org.ldaptive.SearchRequest request)
        Description copied from interface: LdaptiveOperations
        Executes search operation.
        Specified by:
        search in interface LdaptiveOperations
        Parameters:
        request - the request
        Returns:
        the search response
      • save

        public <T> T save​(T domainObject,
                          LdaptiveEntryMapper<T> entryMapper)
        Description copied from interface: LdaptiveOperations
        Save t.
        Specified by:
        save in interface LdaptiveOperations
        Type Parameters:
        T - the type parameter
        Parameters:
        domainObject - the domain object
        entryMapper - the entry mapper
        Returns:
        the t