Enum LegalHoldBasis
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
GDPR Article 17(3) exceptions that justify blocking erasure.
public enum LegalHoldBasis
Fields
ArchivingResearchStatistics = 4Article 17(3)(d) - Archiving in public interest, research, statistics.
FreedomOfExpression = 1Article 17(3)(a) - Freedom of expression and information.
LegalClaims = 5Article 17(3)(e) - Legal claims (defense/exercise).
LegalObligation = 2Article 17(3)(b) - Legal obligation under EU/Member State law.
LitigationHold = 6Litigation hold (anticipation of legal proceedings).
NotEstablished = 0No Article 17(3) ground was established: nobody stated one.
Zero means "not established" so that a value nobody assigned cannot read as a lawful ground.
requiredmakes omission inexpressible to the C# compiler, but a reflection binder, a deserializer, a store round trip and an out-of-range cast all reach this enum without the compiler's involvement — and whatever sits at zero is what they produce. While zero was FreedomOfExpression, an unset configuration value was indistinguishable from a deliberate Article 17(3)(a) claim, and on a signed erasure certificate it read as the ground under which a tax record was kept.It is not a lawful basis and must never be attested as one. An exemption carrying it is an unmet obligation, and presenting an unmet obligation as a ground turns a failure into a defensible retention. An erasure whose certificate would carry it is recorded as not complete.
PublicInterestHealth = 3Article 17(3)(c) - Public interest (public health).
RegulatoryInvestigation = 7Regulatory investigation.