Interface OperationContext

All Known Implementing Classes:
OperationContext.AddContext, OperationContext.DeleteContext, OperationContext.ModifyContext, OperationContext.ModifyDnContext

This class describe the replication context that is attached to each Operation using the SYNCHROCONTEXT key.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Replication context that is attached to Add Operation.
    static final record 
    Replication context attached to a Delete Operation.
    static final record 
    Replication context attached to a Modify Operation.
    static final record 
    Replication context that is attached to ModifyDN operation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The identifier used to attach the context to operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    csn()
    Gets the CSN of the Operation.
    Get the unique Identifier of the modified entry.
    static CSN
    Get the CSN of an operation from the synchronization context attached to the provided operation.
  • Field Details

    • SYNCHROCONTEXT

      static final String SYNCHROCONTEXT
      The identifier used to attach the context to operations.
      See Also:
  • Method Details

    • csn

      CSN csn()
      Gets the CSN of the Operation.
      Returns:
      The CSN of the Operation.
    • entryUuid

      UUID entryUuid()
      Get the unique Identifier of the modified entry.
      Returns:
      the unique Identifier of the modified entry.
    • getCSN

      static CSN getCSN(PluginOperation op)
      Get the CSN of an operation from the synchronization context attached to the provided operation.
      Parameters:
      op - The operation.
      Returns:
      The CSN of the provided operation, or null if there is no CSN associated with the operation.