Class ModifyAttributesOperationRecorder
- java.lang.Object
-
- org.springframework.ldap.transaction.compensating.ModifyAttributesOperationRecorder
-
- All Implemented Interfaces:
CompensatingTransactionOperationRecorder
public class ModifyAttributesOperationRecorder extends java.lang.Object implements CompensatingTransactionOperationRecorder
ACompensatingTransactionOperationRecorder
keeping track of modifyAttributes operations, creating correspondingModifyAttributesOperationExecutor
instances for rollback.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description ModifyAttributesOperationRecorder(LdapOperations ldapOperations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.naming.directory.ModificationItem
getCompensatingModificationItem(javax.naming.directory.Attributes originalAttributes, javax.naming.directory.ModificationItem modificationItem)
Get a ModificationItem to use for rollback of the supplied modification.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
-
ModifyAttributesOperationRecorder
public ModifyAttributesOperationRecorder(LdapOperations ldapOperations)
-
-
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.
-
getCompensatingModificationItem
protected javax.naming.directory.ModificationItem getCompensatingModificationItem(javax.naming.directory.Attributes originalAttributes, javax.naming.directory.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.
-
-