Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Policy

Hierarchy

Index

Constructors

constructor

  • new Policy(params?: any): Policy
  • Parameters

    • Default value params: any = {}

    Returns Policy

Properties

params

params: any

Static type_name

type_name: string

Methods

Protected Abstract _getRestrictingQuery

  • Parameters

    Returns Promise<Query>

check

Abstract checkerFunction

getRestrictingQuery

  • Parameters

    Returns Promise<Query>

isItemSensitive

  • isItemSensitive(): Promise<boolean>
  • Returns Promise<boolean>

Static allow

  • allow(reason: string): { allowed: boolean; reason: string }
  • Parameters

    • reason: string

    Returns { allowed: boolean; reason: string }

    • allowed: boolean
    • reason: string

Static deny

  • deny(reason: string): { allowed: boolean; reason: string }
  • Parameters

    • reason: string

    Returns { allowed: boolean; reason: string }

    • allowed: boolean
    • reason: string

Static fromDefinition

Generated using TypeDoc