Options
All
  • Public
  • Public/Protected
  • All
Menu

Manage multiple guard groups

Hierarchy

  • GdprManager

Implements

Index

Properties

bannerWasShown: boolean

Whether the banner has already been shown to the user

description: string
enabled: boolean

Whether the whole manager is enabled

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
required: boolean
storage: GdprStorage

Methods

  • Add a group to this manager

    memberof

    GdprManager

    Parameters

    Returns GdprManager

  • closeBanner(): void
  • Mark the GDPR banner as shown and trigger enable and disable events

    Returns void

  • createGroup(name: string, description?: string): GdprManager
  • Create and add a group to this manager

    memberof

    GdprManager

    Parameters

    • name: string

      The new group's name

    • Optional description: string

    Returns GdprManager

  • inheritdoc
    override
    memberof

    GdprManager

    Returns GdprGuard

  • inheritdoc
    override
    memberof

    GdprManager

    Parameters

    Returns GdprGuard

  • inheritdoc
    override
    memberof

    GdprManager

    Returns GdprGuard

  • inheritdoc
    override
    memberof

    GdprManager

    Parameters

    Returns GdprGuard

  • inheritdoc
    memberof

    GdprManager

    Parameters

    • name: string

    Returns null | GdprGuardGroup

  • Returns GdprGuardGroup[]

  • inheritdoc
    override
    memberof

    GdprManager

    Parameters

    • name: string

    Returns null | GdprGuard

  • hasGroup(name: string): boolean
  • inheritdoc
    memberof

    GdprManager

    Parameters

    • name: string

    Returns boolean

  • hasGuard(name: string): boolean
  • inheritdoc
    override
    memberof

    GdprManager

    Parameters

    • name: string

    Returns boolean

  • isEnabled(name: string): boolean
  • inheritdoc
    override
    memberof

    GdprManager

    Parameters

    • name: string

    Returns boolean

  • Does nothing for a manager

    inheritdoc
    override
    memberof

    GdprManager

    Returns GdprGuard

  • Raw/simple representation of this guard

    override
    memberof

    GdprManager

    Returns GdprManagerRaw

  • resetAndShowBanner(): void
  • Reset the state of the GDPR banner and show it

    Returns void

  • inheritdoc
    override
    memberof

    GdprManager

    Returns GdprGuard

  • inheritdoc
    override
    memberof

    GdprManager

    Parameters

    Returns GdprGuard

  • Factory for creating a gdpr manager

    static
    memberof

    GdprManager

    Parameters

    Returns GdprManager