Class OperationContext

    • Field Detail

      • SYNCHROCONTEXT

        public static final String SYNCHROCONTEXT
        The identifier used to attach the context to operations.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OperationContext

        protected OperationContext​(CSN csn,
                                   UUID entryUUID)
        Create a new OperationContext.
        Parameters:
        csn - The CSN of the operation.
        entryUUID - The unique Identifier of the modified entry.
    • Method Detail

      • getCSN

        public CSN getCSN()
        Gets the CSN of the Operation.
        Returns:
        The CSN of the Operation.
      • getEntryUUID

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

        public 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object