Class KmeliaOperationContext

java.lang.Object
org.silverpeas.components.kmelia.service.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 Details

    • 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.
    • isAbout

      public boolean isAbout(KmeliaOperationContext.OperationType type)
    • getInvoker

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