Class RenameOperationExecutor
- java.lang.Object
-
- org.springframework.ldap.transaction.compensating.RenameOperationExecutor
-
- All Implemented Interfaces:
CompensatingTransactionOperationExecutor
public class RenameOperationExecutor extends java.lang.Object implements CompensatingTransactionOperationExecutor
ACompensatingTransactionOperationExecutor
to manage a rename operation. Performs a rename operation inperformOperation()
, a negating rename inrollback()
, and nothing incommit()
.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description RenameOperationExecutor(LdapOperations ldapOperations, javax.naming.Name originalDn, javax.naming.Name newDn)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit()
Commit the operation.void
performOperation()
Perform the operation.void
rollback()
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
-
RenameOperationExecutor
public RenameOperationExecutor(LdapOperations ldapOperations, javax.naming.Name originalDn, javax.naming.Name newDn)
Constructor.- Parameters:
ldapOperations
- TheLdapOperations
to use for performing the rollback operation.originalDn
- DN that the entry was moved from in the recorded operation.newDn
- DN that the entry has been moved to in the recorded operation.
-
-
Method Detail
-
rollback
public void rollback()
Description copied from interface:CompensatingTransactionOperationExecutor
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.- Specified by:
rollback
in interfaceCompensatingTransactionOperationExecutor
-
commit
public void commit()
Description copied from interface:CompensatingTransactionOperationExecutor
Commit 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:
commit
in interfaceCompensatingTransactionOperationExecutor
-
performOperation
public void performOperation()
Description copied from interface:CompensatingTransactionOperationExecutor
Perform 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:
performOperation
in interfaceCompensatingTransactionOperationExecutor
-
-