Options
All
  • Public
  • Public/Protected
  • All
Menu

Generic type representing a guard

Hierarchy

Index

Properties

description: string

A description of what this guard does

enabled: boolean

Whether the guard is currently enabled

name: string

Unique name of this guard

required: boolean

Whether this guard is required

storage: GdprStorage

Where this guard is stored

Methods

  • Disable this guard

    memberof

    GdprGuard

    Returns GdprGuard

    this guard

  • Disable guards of the given type (this guard and sub-guards)

    memberof

    GdprGuard

    Parameters

    • type: GdprStorage

      The storage type to enable all guards for

    Returns GdprGuard

    this guard

  • Enable this guard

    memberof

    GdprGuard

    Returns GdprGuard

    this guard

  • Enable guards of the given type (this guard and sub-guards)

    memberof

    GdprGuard

    Parameters

    • type: GdprStorage

      The storage type to enable all guards for

    Returns GdprGuard

    this guard

  • isEnabled(name: string): boolean
  • Determine whether or not a guard is enabled

    memberof

    GdprGuard

    Parameters

    • name: string

      The name of the guard to look for

    Returns boolean

  • Make this guard required

    memberof

    GdprGuard

    Returns GdprGuard

    this guard

  • Raw/simple representation of this guard

    Returns GdprGuardRaw

  • Toggle the enabled state of this guard

    memberof

    GdprGuard

    Returns GdprGuard

    this guard

  • Toggle guards of the given type (this guard and sub-guards)

    memberof

    GdprGuard

    Parameters

    • type: GdprStorage

      The storage type to enable all guards for

    Returns GdprGuard

    this guard