Class ClaimSet

Hierarchy

  • ClaimSet

Constructors

Properties

_jsonString: null | string = null
claims: Claim[]
frozen: boolean

Methods

  • returns true if any of the claims of the set returns true for the check() of the given query

    Parameters

    • query: string | IClaimData | Claim

      can be a string ("verb:resource" or "verb:*") or an object with verb and resource

    Returns boolean

    See

    Claim

  • collects from the claims of the set the result of directChild()

    Parameters

    • query: string | IClaimData | Claim

      can be a string ("verb:resource" or "verb:*") or an object with verb and resource

    Returns string[]

    See

    Claim

  • collects from the claims of the set the result of directDescendant()

    Parameters

    • query: string | IClaimData | Claim

      can be a string ("verb:resource" or "verb:*") or an object with verb and resource

    Returns string[]

    See

    Claim

  • returns true if any of the claims of the set returns true for the hasExact() of the given query

    Parameters

    • query: string | IClaimData | Claim

      can be a string ("verb:resource" or "verb:*") or an object with verb and resource

    Returns boolean

    See

    Claim

  • returns True if the claim set does not allow any changes

    Returns boolean

  • Parameters

    • query: string | IClaimData | Claim
    • fn: ((claim, parsedQuery) => null | string)
        • (claim, parsedQuery): null | string
        • Parameters

          Returns null | string

    Returns string[]

  • returns a string with the JSON representation of the claim set

    It is calculated only once and then memoized, but resets if the claimSet gets unfrozen

    Returns string

Generated using TypeDoc