public class UnbindOperationRecorder extends Object implements CompensatingTransactionOperationRecorder
CompensatingTransactionOperationRecorder
to keep track of unbind
operations. This class creates UnbindOperationExecutor
objects for
rollback.Constructor and Description |
---|
UnbindOperationRecorder(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 UnbindOperationRecorder(LdapOperations ldapOperations, TempEntryRenamingStrategy renamingStrategy)
ldapOperations
- LdapOperations
to use for getting the data prior to
unbinding the entry and to supply to the
UnbindOperationExecutor
for rollback.renamingStrategy
- the TempEntryRenamingStrategy
to use when generating
DNs for temporary entries.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()