Context
class Context : AxonContext
Haxall execution and security context.
Runtime.newContext constructor for sys, project, and user
If missing admin permission, throw PermissionErr
If missing superuser permission, throw PermissionErr
Current context for actor thread
Folio database for the runtime
Convenience to lookup ext in runtime
Runtime namespace
Project associated with this context
Runtime is the project if available, or sys as fallback
Authentication session associated with this context if applicable
System
User account associated with this context
Void checkAdmin(Str action)
If missing admin permission, throw PermissionErr
Void checkSu(Str action)
If missing superuser permission, throw PermissionErr
static Context? cur(Bool checked := true)
Current context for actor thread
Folio db()
Folio database for the runtime
Ext? ext(Str name, Bool checked := true)
Convenience to lookup ext in runtime
new make(Sys sys, Proj? proj, User user)
Runtime.newContext constructor for sys, project, and user.
virtual Namespace ns()
Runtime namespace
virtual Proj? proj(Bool checked := true)
Project associated with this context
virtual Runtime rt()
Runtime is the project if available, or sys as fallback
UserSession? session(Bool checked := true)
Authentication session associated with this context if applicable
virtual Sys sys()
System
virtual User user()
User account associated with this context