|
spring-ldap-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.transaction.compensating.UnbindOperationExecutor
public class UnbindOperationExecutor
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.
| Constructor Summary | |
|---|---|
UnbindOperationExecutor(LdapOperations ldapOperations,
Name originalDn,
Name temporaryDn)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnbindOperationExecutor(LdapOperations ldapOperations,
Name originalDn,
Name temporaryDn)
ldapOperations - The LdapOperations to 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 Detail |
|---|
public void rollback()
CompensatingTransactionOperationExecutor
rollback in interface CompensatingTransactionOperationExecutorpublic void commit()
CompensatingTransactionOperationExecutor
commit in interface CompensatingTransactionOperationExecutorpublic void performOperation()
CompensatingTransactionOperationExecutor
performOperation in interface CompensatingTransactionOperationExecutor
|
spring-ldap-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||