Class ModifyAttributesOperationRecorder
java.lang.Object
org.springframework.ldap.transaction.compensating.ModifyAttributesOperationRecorder
- All Implemented Interfaces:
CompensatingTransactionOperationRecorder
public class ModifyAttributesOperationRecorder
extends Object
implements CompensatingTransactionOperationRecorder
A
CompensatingTransactionOperationRecorder
keeping track of
modifyAttributes operations, creating corresponding
ModifyAttributesOperationExecutor
instances for rollback.- Since:
- 1.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ModificationItem
getCompensatingModificationItem
(Attributes originalAttributes, ModificationItem modificationItem) Get a ModificationItem to use for rollback of the supplied modification.recordOperation
(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 Details
-
ModifyAttributesOperationRecorder
-
-
Method Details
-
recordOperation
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.
-
getCompensatingModificationItem
protected ModificationItem getCompensatingModificationItem(Attributes originalAttributes, ModificationItem modificationItem) Get a ModificationItem to use for rollback of the supplied modification.- Parameters:
originalAttributes
- All Attributes of the target DN that are affected of any of the ModificationItems.modificationItem
- the ModificationItem to create a rollback item for.- Returns:
- A ModificationItem to use for rollback of the supplied ModificationItem.
-