public class BindOperationExecutor extends Object implements CompensatingTransactionOperationExecutor
CompensatingTransactionOperationExecutor to manage a bind
operation. Performs a bind in performOperation(), a corresponding
unbind in rollback(), and nothing in commit().| Constructor and Description |
|---|
BindOperationExecutor(LdapOperations ldapOperations,
Name dn,
Object originalObject,
Attributes originalAttributes)
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 BindOperationExecutor(LdapOperations ldapOperations, Name dn, Object originalObject, Attributes originalAttributes)
ldapOperations - LdapOperations to use for performing the rollback
operation.dn - DN of the entry to be unbound.originalObject - original value sent to the 'object' parameter of the bind
operation.originalAttributes - original value sent to the 'attributes' parameter of the bind
operation.public void rollback()
CompensatingTransactionOperationExecutorrollback in interface CompensatingTransactionOperationExecutorpublic void commit()
CompensatingTransactionOperationExecutorcommit in interface CompensatingTransactionOperationExecutorpublic void performOperation()
CompensatingTransactionOperationExecutorperformOperation in interface CompensatingTransactionOperationExecutor