interface ISessionContext {
    currentTime?: PreciseClock;
    object?: UAObject | UAObjectType;
    session?: ISessionBase;
    userIdentity?: string;
    checkPermission(node: BaseNode, action: PermissionType): boolean;
    currentUserHasRole(role: NodeIdLike): boolean;
    getCurrentUserRoles(): NodeId[];
    isAccessRestricted(node: BaseNode): boolean;
    isBrowseAccessRestricted(node: BaseNode): boolean;
}

Implemented by

Properties

currentTime?: PreciseClock
session?: ISessionBase
userIdentity?: string

Methods

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Returns NodeId[]

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean