type

HxContext

abstract class HxContext : AxonContext

Haxall execution and security context.

methods

checkAdmin

If missing admin permission, throw PermissionErr

checkSu

If missing superuser permission, throw PermissionErr

db

Folio database for the runtime

rt

Runtime associated with this context

session

Authentication session associated with this context if applicable

user

User account associated with this context

Slot Details

checkAdmin

virtual Void checkAdmin(Str action)

If missing admin permission, throw PermissionErr

checkSu

virtual Void checkSu(Str action)

If missing superuser permission, throw PermissionErr

db

abstract Folio db()

Folio database for the runtime

rt

abstract HxRuntime rt()

Runtime associated with this context

session

abstract HxSession? session(Bool checked := true)

Authentication session associated with this context if applicable

user

abstract HxUser user()

User account associated with this context