Options
All
  • Public
  • Public/Protected
  • All
Menu

Class If

Hierarchy

Index

Constructors

constructor

  • new If(__namedParameters: [string, string, Policy | [{ constructor: any; type_name: string }, any] | { constructor: any; type_name: string }, Policy | [{ constructor: any; type_name: string }, any] | { constructor: any; type_name: string }]): If
  • Parameters

    • __namedParameters: [string, string, Policy | [{ constructor: any; type_name: string }, any] | { constructor: any; type_name: string }, Policy | [{ constructor: any; type_name: string }, any] | { constructor: any; type_name: string }]

    Returns If

Properties

collection_name

collection_name: string

filter_name

filter_name: string

params

params: any

strategy_when

strategy_when: {}

Type declaration

Static type_name

type_name: string = "if"

Methods

_getRestrictingQuery

  • _getRestrictingQuery(context: Context): Promise<Or>

check

checkerFunction

constructQuery

  • constructQuery(context: Context): Promise<Or>
  • Parameters

    Returns Promise<Or>

getFilter

  • Parameters

    Returns SpecialFilter

getRestrictingQuery

isItemSensitive

  • isItemSensitive(): 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