public class ModifyAttributesOperationRecorder extends java.lang.Object implements CompensatingTransactionOperationRecorder
CompensatingTransactionOperationRecorder
keeping track of
modifyAttributes operations, creating corresponding
ModifyAttributesOperationExecutor
instances for rollback.Constructor and Description |
---|
ModifyAttributesOperationRecorder(LdapOperations ldapOperations) |
Modifier and Type | Method and Description |
---|---|
protected javax.naming.directory.ModificationItem |
getCompensatingModificationItem(javax.naming.directory.Attributes originalAttributes,
javax.naming.directory.ModificationItem modificationItem)
Get a ModificationItem to use for rollback of the supplied modification.
|
CompensatingTransactionOperationExecutor |
recordOperation(java.lang.Object[] args)
Record information about the operation performed and return a
corresponding
CompensatingTransactionOperationExecutor to be used
if the operation would need to be rolled back. |
public ModifyAttributesOperationRecorder(LdapOperations ldapOperations)
public CompensatingTransactionOperationExecutor recordOperation(java.lang.Object[] args)
CompensatingTransactionOperationRecorder
CompensatingTransactionOperationExecutor
to be used
if the operation would need to be rolled back.recordOperation
in interface CompensatingTransactionOperationRecorder
args
- The arguments that have been sent to the operation.CompensatingTransactionOperationExecutor
to be used if
the recorded operation should need to be rolled back.protected javax.naming.directory.ModificationItem getCompensatingModificationItem(javax.naming.directory.Attributes originalAttributes, javax.naming.directory.ModificationItem modificationItem)
originalAttributes
- All Attributes of the target DN that are affected of any of
the ModificationItems.modificationItem
- the ModificationItem to create a rollback item for.