Class UnbindOperationExecutor
java.lang.Object
org.springframework.ldap.transaction.compensating.UnbindOperationExecutor
- All Implemented Interfaces:
- CompensatingTransactionOperationExecutor
public class UnbindOperationExecutor
extends Object
implements CompensatingTransactionOperationExecutor
A 
CompensatingTransactionOperationExecutor to manage an unbind operation. The
 methods in this class do not behave as expected, since it might be impossible to
 retrieve all the original attributes from the entry. Instead this class performs a
 rename in performOperation(), a negating rename in rollback(),
 and commit() unbinds the entry from its temporary location.- Since:
- 1.2
- 
Constructor SummaryConstructorsConstructorDescriptionUnbindOperationExecutor(LdapOperations ldapOperations, Name originalDn, Name temporaryDn) Constructor.
- 
Method Summary
- 
Constructor Details- 
UnbindOperationExecutorConstructor.- Parameters:
- ldapOperations- The- LdapOperationsto use for performing the rollback operation.
- originalDn- The original DN of the entry to be removed.
- temporaryDn- Temporary DN of the entry to be removed; this is where the entry is temporarily stored during the transaction.
 
 
- 
- 
Method Details- 
rollbackpublic 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 interface- CompensatingTransactionOperationExecutor
 
- 
commitpublic 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 interface- CompensatingTransactionOperationExecutor
 
- 
performOperationpublic 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 interface- CompensatingTransactionOperationExecutor
 
 
-