Class RebindOperationExecutor

java.lang.Object
org.springframework.ldap.transaction.compensating.RebindOperationExecutor
All Implemented Interfaces:
CompensatingTransactionOperationExecutor

public class RebindOperationExecutor extends Object implements CompensatingTransactionOperationExecutor
A CompensatingTransactionOperationExecutor to manage a rebind operation. The methods in this class do not behave as expected, since it might be impossible to retrieve all the original attributes from the entry. Instead this class performs a rename in performOperation(), a negating rename in rollback(), and the commit() operation unbinds the original entry from its temporary location and binds a new entry to the original location using the attributes supplied to the original rebind opertaion.
Since:
1.2
  • Constructor Details

    • RebindOperationExecutor

      public RebindOperationExecutor(LdapOperations ldapOperations, Name originalDn, Name temporaryDn, Object originalObject, Attributes originalAttributes)
      Constructor.
      Parameters:
      ldapOperations - the LdapOperations to use to perform the rollback.
      originalDn - The original DN of the entry to bind.
      temporaryDn - The temporary DN of the entry.
      originalObject - Original 'object' parameter sent to the rebind operation.
      originalAttributes - Original 'attributes' parameter sent to the rebind operation
  • Method Details