Class KmeliaOperationContext


  • public class KmeliaOperationContext
    extends Object
    Defines the context of a mutable operation on publications that is currently invoked in Kmelia. Useful to maintain the operation state along different invocations, mainly with system notifications that are processed by different transverse services.
    Author:
    mmoquillon
    • Method Detail

      • current

        public static Optional<KmeliaOperationContext> current()
        Gets the current operation context. None if no such a context has been set.
        Returns:
        optionally the current operation context if any.
      • about

        public static void about​(KmeliaOperationContext.OperationType type)
        Spawn a new Kmelia context about the given operation on publications.
        Parameters:
        type - the type of the operation.
      • getInvoker

        public org.silverpeas.core.admin.user.model.User getInvoker()