public class RebindOperationRecorder extends Object implements CompensatingTransactionOperationRecorder
CompensatingTransactionOperationRecorder
keeping track of a rebind
operation. Creates RebindOperationExecutor
objects in
recordOperation(Object[])
.Constructor and Description |
---|
RebindOperationRecorder(LdapOperations ldapOperations,
TempEntryRenamingStrategy renamingStrategy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TempEntryRenamingStrategy |
getRenamingStrategy() |
CompensatingTransactionOperationExecutor |
recordOperation(Object[] args)
Record information about the operation performed and return a
corresponding
CompensatingTransactionOperationExecutor to be used
if the operation would need to be rolled back. |
public RebindOperationRecorder(LdapOperations ldapOperations, TempEntryRenamingStrategy renamingStrategy)
ldapOperations
- LdapOperations
to use for getting the rollback
information and supply to the RebindOperationExecutor
.renamingStrategy
- TempEntryRenamingStrategy
to use for generating temp
DNs.public CompensatingTransactionOperationExecutor recordOperation(Object[] args)
CompensatingTransactionOperationRecorder
CompensatingTransactionOperationExecutor
to be used
if the operation would need to be rolled back.recordOperation
in interface CompensatingTransactionOperationRecorder
args
- The arguments that have been sent to the operation.CompensatingTransactionOperationExecutor
to be used if
the recorded operation should need to be rolled back.public TempEntryRenamingStrategy getRenamingStrategy()