org.springframework.ldap.core.support

## Interface LdapOperationsCallback<T>

-     public interface LdapOperationsCallback<T>

  Callback interface to be used together with `SingleContextSource`.
  Since:
    2.0
  Author:
    Mattias Hellborg Arthursson
  See Also:
    `SingleContextSource.doWithSingleContext(org.springframework.ldap.core.ContextSource, LdapOperationsCallback)`, `SingleContextSource.doWithSingleContext(org.springframework.ldap.core.ContextSource, LdapOperationsCallback, boolean, boolean, boolean)`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `doWithLdapOperations(LdapOperations operations)` Perform a sequence of LDAP operations on the supplied LdapOperations instance.

- - ### Method Detail

    - #### doWithLdapOperations

          T doWithLdapOperations(LdapOperations operations)

      Perform a sequence of LDAP operations on the supplied LdapOperations instance. The underlying DirContext that the operations will work on is guaranteed to always be exact same instance during the lifetime of this method.
      Parameters:
        `operations` - the LdapOperations instance to perform operations on.
      Returns:
        The aggregated result of all the performed operations.