Package com.axelor.workflow.security
Class WorkflowIdentity
java.lang.Object
com.axelor.workflow.security.WorkflowIdentity
Restores workflow user attribution on scheduler and capture-dispatch threads. Sets Axelor's
current user for audit columns and expressions; establishes no Shiro subject.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe same, for work that answers nothing.<T> TRuns as the initiator, restoring the thread's identity even on failure.void<T> TEstablish a captured identity without inheriting the dispatcher's ambient user.
-
Constructor Details
-
WorkflowIdentity
public WorkflowIdentity()
-
-
Method Details
-
as
Runs as the initiator, restoring the thread's identity even on failure. Deleted or inactive initiators leave the work unattributed: already-owed work must still complete. -
asUser
Establish a captured identity without inheriting the dispatcher's ambient user. -
asUser
-
as
The same, for work that answers nothing.
-