public class ModifyAttributesOperationExecutor extends Object implements CompensatingTransactionOperationExecutor
CompensatingTransactionOperationExecutor
to manage a
modifyAttributes
operation. Performs a
modifyAttributes
in performOperation()
, a negating
modifyAttributes in rollback()
, and nothing in commit()
.Constructor and Description |
---|
ModifyAttributesOperationExecutor(LdapOperations ldapOperations,
Name dn,
ModificationItem[] actualModifications,
ModificationItem[] compensatingModifications)
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 ModifyAttributesOperationExecutor(LdapOperations ldapOperations, Name dn, ModificationItem[] actualModifications, ModificationItem[] compensatingModifications)
ldapOperations
- The LdapOperations
to use to perform the rollback
operation.dn
- the DN of the target entry.actualModifications
- the actual modificationItems that were sent to the
modifyAttributes operation.compensatingModifications
- the ModificationItems to undo 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
Copyright © 2005–2015 The Spring LDAP Framework. All rights reserved.