Class UnbindOperationRecorder
java.lang.Object
org.springframework.ldap.transaction.compensating.UnbindOperationRecorder
- All Implemented Interfaces:
CompensatingTransactionOperationRecorder
public class UnbindOperationRecorder
extends Object
implements CompensatingTransactionOperationRecorder
CompensatingTransactionOperationRecorder
to keep track of unbind
operations. This class creates UnbindOperationExecutor
objects for
rollback.- Since:
- 1.2
-
Constructor Summary
ConstructorsConstructorDescriptionUnbindOperationRecorder
(LdapOperations ldapOperations, TempEntryRenamingStrategy renamingStrategy) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionrecordOperation
(Object[] args) Record information about the operation performed and return a correspondingCompensatingTransactionOperationExecutor
to be used if the operation would need to be rolled back.
-
Constructor Details
-
UnbindOperationRecorder
public UnbindOperationRecorder(LdapOperations ldapOperations, TempEntryRenamingStrategy renamingStrategy) Constructor.- Parameters:
ldapOperations
-LdapOperations
to use for getting the data prior to unbinding the entry and to supply to theUnbindOperationExecutor
for rollback.renamingStrategy
- theTempEntryRenamingStrategy
to use when generating DNs for temporary entries.
-
-
Method Details
-
recordOperation
Description copied from interface:CompensatingTransactionOperationRecorder
Record information about the operation performed and return a correspondingCompensatingTransactionOperationExecutor
to be used if the operation would need to be rolled back.- Specified by:
recordOperation
in interfaceCompensatingTransactionOperationRecorder
- Parameters:
args
- The arguments that have been sent to the operation.- Returns:
- A
CompensatingTransactionOperationExecutor
to be used if the recorded operation should need to be rolled back.
-
getRenamingStrategy
-