Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

bitLength

bitLength: number = 0

if this originatd from an encoded string we'll need a place to store the bit length; it can be set and got from here

Accessors

gvl

gvl:

Essential for being able to determine whether we can actually set a purpose restriction since they have to have a flexible legal basis gvl returns local copy of the GVL these restrictions apply to

numRestrictions

numRestrictions:

numRestrictions - returns the number of Purpose Restrictions.

Methods

add

clone

getMaxVendorId

  • getMaxVendorId(): number

getPurposes

  • getPurposes(): number[]

getRestrictionType

  • getRestrictionType(vendorId: number, purposeId: number): RestrictionType | undefined

getRestrictions

getVendors

  • getVendors - returns array of vendor ids optionally narrowed by a given Purpose Restriction. If no purpose restriction is passed then all vendor ids will be returned. One can expect this result to be a unique set of ids no duplicates.

    Parameters

    Returns number[]

    • Unique ID set of vendors

isEmpty

  • isEmpty(): boolean

isEncodable

  • isEncodable(): boolean
  • isEncodable - The Vector will add restrictions even if they are not allowed by the GVL until it can verify that the GVL permits them to be added. This check determines if Vector is ready to be encoded. Another case is that this vector is empty and does not need a GVL instance because there's nothing to check.

    Returns boolean

remove

vendorHasRestriction

  • vendorHasRestriction - determines whether a given Vendor ID is under a given Purpose Restriction

    Parameters

    Returns boolean

    • true if the give Vendor ID is under the given Purpose Restriction

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc