public class RenameOperationExecutor extends Object implements CompensatingTransactionOperationExecutor
CompensatingTransactionOperationExecutor
to manage a rename
operation. Performs a rename operation in performOperation()
, a
negating rename in rollback()
, and nothing in commit()
.Constructor and Description |
---|
RenameOperationExecutor(LdapOperations ldapOperations,
Name originalDn,
Name newDn)
Constructor.
|
Modifier and Type | Method and 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.
|
public RenameOperationExecutor(LdapOperations ldapOperations, Name originalDn, Name newDn)
ldapOperations
- The LdapOperations
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.public void rollback()
CompensatingTransactionOperationExecutor
rollback
in interface CompensatingTransactionOperationExecutor
public void commit()
CompensatingTransactionOperationExecutor
commit
in interface CompensatingTransactionOperationExecutor
public void performOperation()
CompensatingTransactionOperationExecutor
performOperation
in interface CompensatingTransactionOperationExecutor