Skip to content

QuiddityGuard

pozil edited this page Nov 14, 2024 · 12 revisions

QuiddityGuard Class

contains methods and static lists for rapid acceptence of a particular set of quiddities

Group Quiddity Recipes

Fields

testQuiddityOverride

TESTVISIBLE

a private testvisible variable allowing developers to inject a custom quiddity value during test execution.

Signature

private static testQuiddityOverride

Type

Quiddity


trustedQuiddities

a non-exhaustive list of Quiddities that do not include user situations where users could be injecting malicious data.

Signature

public static trustedQuiddities

Type

List<Quiddity>


trustedTestQuiddities

An exaustive list of quiddities that are valid for a test execution

Signature

public static trustedTestQuiddities

Type

List<Quiddity>


untrustedQuiddities

A list of quiddities that may include user-defined data and therefore should not be trusted without manual FLS/CRUD checks

Signature

public static untrustedQuiddities

Type

List<Quiddity>

Methods

isAcceptableQuiddity(acceptableQuiddites)

A method to determine if the current Quiddity context is within a caller-supplied list of acceptable quiddity values.

Signature

public static Boolean isAcceptableQuiddity(List<Quiddity> acceptableQuiddites)

Parameters

Name Type Description
acceptableQuiddites List<Quiddity> A list of quiddities to check against

Return Type

Boolean


isNotAcceptableQuiddity(acceptableQuiddites)

Signature

public static Boolean isNotAcceptableQuiddity(List<Quiddity> acceptableQuiddites)

Parameters

Name Type Description
acceptableQuiddites List<Quiddity>

Return Type

Boolean

Clone this wiki locally