public class ModifyAttributesOperationRecorder extends Object implements CompensatingTransactionOperationRecorder
CompensatingTransactionOperationRecorder
keeping track of
modifyAttributes operations, creating corresponding
ModifyAttributesOperationExecutor
instances for rollback.Constructor and Description |
---|
ModifyAttributesOperationRecorder(LdapOperations ldapOperations) |
Modifier and Type | Method and Description |
---|---|
protected ModificationItem |
getCompensatingModificationItem(Attributes originalAttributes,
ModificationItem modificationItem)
Get a ModificationItem to use for rollback of the supplied modification.
|
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 ModifyAttributesOperationRecorder(LdapOperations ldapOperations)
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.protected ModificationItem getCompensatingModificationItem(Attributes originalAttributes, ModificationItem modificationItem)
originalAttributes
- All Attributes of the target DN that are affected of any of
the ModificationItems.modificationItem
- the ModificationItem to create a rollback item for.