Class KmeliaOperationContext
java.lang.Object
org.silverpeas.components.kmelia.service.KmeliaOperationContext
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDifferent kinds of operations. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSpawn a new Kmelia context about the given operation on publications.static Optional<KmeliaOperationContext>current()Gets the current operation context.org.silverpeas.core.admin.user.model.Userboolean
-
Method Details
-
current
Gets the current operation context. None if no such a context has been set.- Returns:
- optionally the current operation context if any.
-
about
Spawn a new Kmelia context about the given operation on publications.- Parameters:
type- the type of the operation.
-
isAbout
-
getInvoker
public org.silverpeas.core.admin.user.model.User getInvoker()
-