Manage multiple guard groups

Hierarchy

  • GdprManager

Implements

Properties

bannerWasShown: boolean = false

Whether the banner has already been shown to the user

description: string = "Manager of GDPR guard groups"

A description of what this guard does

enabled: boolean = true

Whether the whole manager is enabled

events: GdprManagerEventHub = ...

A hub to attach listeners to events triggered by this manager

groups: Map<string, GdprGuardGroup> = ...

A mapping from group name to the corresponding group

name: string = "manager"

Unique name of this guard

required: boolean = false

Whether this guard is required

storage: GdprStorage = GdprStorage.None

Where this guard is stored

Methods

  • Mark the GDPR banner as shown and trigger enable and disable events

    Returns void

  • Create and add a group to this manager

    Returns

    Memberof

    GdprManager

    Parameters

    • name: string

      The new group's name

    • Optional description: string = ""

      The new group's description

    Returns GdprManager

  • Inherit Doc

    Memberof

    GdprManager

    Parameters

    • name: string

    Returns boolean

  • Determine whether or not the collection has a given guard

    Returns

    TRUE if it is in its hierarchy, FALSE otherwise

    Memberof

    GdprGuardCollection

    Parameters

    • name: string

      The name of the guard to look for

    Returns boolean

  • Determine whether or not a guard is enabled

    Memberof

    GdprGuard

    Parameters

    • name: string

      The name of the guard to look for

    Returns boolean

  • Reset the state of the GDPR banner and show it

    Returns void