Context
class Context : AxonContext
Haxall execution and security context.
Runtime.newContext constructor for sys, project, and user
Convenience to lookup ext in runtime
Current context for actor thread
Runtime is the project if available, or sys as fallback
If missing superuser permission, throw PermissionErr
Runtime namespace
Authentication session associated with this context if applicable
Project associated with this context
If missing admin permission, throw PermissionErr
System
User account associated with this context
Folio database for the runtime
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)
Current context for actor thread
Folio db()
Folio database for the runtime
Ext? ext(Str name, Bool checked)
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)
Project associated with this context
virtual Runtime rt()
Runtime is the project if available, or sys as fallback
UserSession? session(Bool checked)
Authentication session associated with this context if applicable
virtual Sys sys()
System
virtual User user()
User account associated with this context