Class ModifyAttributesOperationExecutor
- java.lang.Object
-
- org.springframework.ldap.transaction.compensating.ModifyAttributesOperationExecutor
-
- All Implemented Interfaces:
CompensatingTransactionOperationExecutor
public class ModifyAttributesOperationExecutor extends java.lang.Object implements CompensatingTransactionOperationExecutor
ACompensatingTransactionOperationExecutorto manage amodifyAttributesoperation. Performs amodifyAttributesinperformOperation(), a negating modifyAttributes inrollback(), and nothing incommit().- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description ModifyAttributesOperationExecutor(LdapOperations ldapOperations, javax.naming.Name dn, javax.naming.directory.ModificationItem[] actualModifications, javax.naming.directory.ModificationItem[] compensatingModifications)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()Commit the operation.voidperformOperation()Perform the operation.voidrollback()Rollback the operation, restoring state of the target as it was before the operation was performed using the information supplied on creation of this instance.
-
-
-
Constructor Detail
-
ModifyAttributesOperationExecutor
public ModifyAttributesOperationExecutor(LdapOperations ldapOperations, javax.naming.Name dn, javax.naming.directory.ModificationItem[] actualModifications, javax.naming.directory.ModificationItem[] compensatingModifications)
Constructor.- Parameters:
ldapOperations- TheLdapOperationsto use to perform the rollback operation.dn- the DN of the target entry.actualModifications- the actual modificationItems that were sent to the modifyAttributes operation.compensatingModifications- the ModificationItems to undo the recorded operation.
-
-
Method Detail
-
rollback
public void rollback()
Description copied from interface:CompensatingTransactionOperationExecutorRollback the operation, restoring state of the target as it was before the operation was performed using the information supplied on creation of this instance.- Specified by:
rollbackin interfaceCompensatingTransactionOperationExecutor
-
commit
public void commit()
Description copied from interface:CompensatingTransactionOperationExecutorCommit the operation. In many cases, this will not require any work at all to be performed. However, in some cases there will be interesting stuff to do. See class description for elaboration on this.- Specified by:
commitin interfaceCompensatingTransactionOperationExecutor
-
performOperation
public void performOperation()
Description copied from interface:CompensatingTransactionOperationExecutorPerform the operation. This will most often require performing the recorded operation, but in some cases the actual operation performed by this method might be something else. See class description for elaboration on this.- Specified by:
performOperationin interfaceCompensatingTransactionOperationExecutor
-
-