Class UnbindOperationRecorder
- java.lang.Object
-
- org.springframework.ldap.transaction.compensating.UnbindOperationRecorder
-
- All Implemented Interfaces:
CompensatingTransactionOperationRecorder
public class UnbindOperationRecorder extends java.lang.Object implements CompensatingTransactionOperationRecorder
CompensatingTransactionOperationRecorderto keep track of unbind operations. This class createsUnbindOperationExecutorobjects for rollback.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description UnbindOperationRecorder(LdapOperations ldapOperations, TempEntryRenamingStrategy renamingStrategy)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TempEntryRenamingStrategygetRenamingStrategy()CompensatingTransactionOperationExecutorrecordOperation(java.lang.Object[] args)Record information about the operation performed and return a correspondingCompensatingTransactionOperationExecutorto be used if the operation would need to be rolled back.
-
-
-
Constructor Detail
-
UnbindOperationRecorder
public UnbindOperationRecorder(LdapOperations ldapOperations, TempEntryRenamingStrategy renamingStrategy)
Constructor.- Parameters:
ldapOperations-LdapOperationsto use for getting the data prior to unbinding the entry and to supply to theUnbindOperationExecutorfor rollback.renamingStrategy- theTempEntryRenamingStrategyto use when generating DNs for temporary entries.
-
-
Method Detail
-
recordOperation
public CompensatingTransactionOperationExecutor recordOperation(java.lang.Object[] args)
Description copied from interface:CompensatingTransactionOperationRecorderRecord information about the operation performed and return a correspondingCompensatingTransactionOperationExecutorto be used if the operation would need to be rolled back.- Specified by:
recordOperationin interfaceCompensatingTransactionOperationRecorder- Parameters:
args- The arguments that have been sent to the operation.- Returns:
- A
CompensatingTransactionOperationExecutorto be used if the recorded operation should need to be rolled back.
-
getRenamingStrategy
public TempEntryRenamingStrategy getRenamingStrategy()
-
-