public class UnbindOperationExecutor extends Object implements CompensatingTransactionOperationExecutor
CompensatingTransactionOperationExecutorto 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
commit()unbinds the entry from its temporary location.
|Constructor and Description|
|Modifier and Type||Method and Description|
Commit the operation.
Perform the operation.
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 UnbindOperationExecutor(LdapOperations ldapOperations, Name originalDn, Name temporaryDn)
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.
public void rollback()
public void commit()
public void performOperation()