Class ModifyAttributesOperationRecorder
- java.lang.Object
-
- org.springframework.ldap.transaction.compensating.ModifyAttributesOperationRecorder
-
- All Implemented Interfaces:
CompensatingTransactionOperationRecorder
public class ModifyAttributesOperationRecorder extends java.lang.Object implements CompensatingTransactionOperationRecorder
ACompensatingTransactionOperationRecorderkeeping track of modifyAttributes operations, creating correspondingModifyAttributesOperationExecutorinstances 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.ModificationItemgetCompensatingModificationItem(javax.naming.directory.Attributes originalAttributes, javax.naming.directory.ModificationItem modificationItem)Get a ModificationItem to use for rollback of the supplied modification.CompensatingTransactionOperationExecutorrecordOperation(java.lang.Object[] args)Record information about the operation performed and return a correspondingCompensatingTransactionOperationExecutorto 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:CompensatingTransactionOperationRecorderRecord information about the operation performed and return a correspondingCompensatingTransactionOperationExecutorto be used if the operation would need to be rolled back.- Specified by:
recordOperationin interfaceCompensatingTransactionOperationRecorder- Parameters:
args- The arguments that have been sent to the operation.- Returns:
- A
CompensatingTransactionOperationExecutorto 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.
-
-