Class RebindOperationRecorder
- java.lang.Object
-
- org.springframework.ldap.transaction.compensating.RebindOperationRecorder
-
- All Implemented Interfaces:
CompensatingTransactionOperationRecorder
public class RebindOperationRecorder extends java.lang.Object implements CompensatingTransactionOperationRecorder
ACompensatingTransactionOperationRecorder
keeping track of a rebind operation. CreatesRebindOperationExecutor
objects inrecordOperation(Object[])
.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description RebindOperationRecorder(LdapOperations ldapOperations, TempEntryRenamingStrategy renamingStrategy)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TempEntryRenamingStrategy
getRenamingStrategy()
CompensatingTransactionOperationExecutor
recordOperation(java.lang.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 Detail
-
RebindOperationRecorder
public RebindOperationRecorder(LdapOperations ldapOperations, TempEntryRenamingStrategy renamingStrategy)
Constructor.- Parameters:
ldapOperations
-LdapOperations
to use for getting the rollback information and supply to theRebindOperationExecutor
.renamingStrategy
-TempEntryRenamingStrategy
to use for generating temp DNs.
-
-
Method Detail
-
recordOperation
public CompensatingTransactionOperationExecutor recordOperation(java.lang.Object[] args)
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
public TempEntryRenamingStrategy getRenamingStrategy()
-
-