type

Context

class Context : AxonContext

Haxall execution and security context.

constructors

make

Runtime.newContext constructor for sys, project, and user.

methods

checkAdmin

If missing admin permission, throw PermissionErr

checkSu

If missing superuser permission, throw PermissionErr

cur

Current context for actor thread

db

Folio database for the runtime

ext

Convenience to lookup ext in runtime

ns

Runtime namespace

proj

Project associated with this context

rt

Runtime is the project if available, or sys as fallback

session

Authentication session associated with this context if applicable

sys

System

user

User account associated with this context

Slot Details

checkAdmin

Void checkAdmin(Str action)

If missing admin permission, throw PermissionErr

checkSu

Void checkSu(Str action)

If missing superuser permission, throw PermissionErr

cur

static Context? cur(Bool checked := true)

Current context for actor thread

db

Folio db()

Folio database for the runtime

ext

Ext? ext(Str name, Bool checked := true)

Convenience to lookup ext in runtime

make

new make(Sys sys, Proj? proj, User user)

Runtime.newContext constructor for sys, project, and user.

ns

virtual override Namespace ns()

Runtime namespace

proj

virtual Proj? proj(Bool checked := true)

Project associated with this context

rt

virtual Runtime rt()

Runtime is the project if available, or sys as fallback

session

UserSession? session(Bool checked := true)

Authentication session associated with this context if applicable

sys

virtual Sys sys()

System

user

virtual User user()

User account associated with this context