Table of Contents

Class DataLocationRegistration

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Registration for a manual data location.

public sealed record DataLocationRegistration : IEquatable<DataLocationRegistration>
Inheritance
DataLocationRegistration
Implements
Inherited Members

Properties

DataCategory

Gets the data category.

public required string DataCategory { get; init; }

Property Value

string

DataSubjectIdColumn

Gets the column containing the data subject identifier.

public required string DataSubjectIdColumn { get; init; }

Property Value

string

Description

Gets a description of this data location.

public string? Description { get; init; }

Property Value

string

FieldName

Gets the column or field name.

public required string FieldName { get; init; }

Property Value

string

IdType

Gets the type of identifier in the column.

public required DataSubjectIdType IdType { get; init; }

Property Value

DataSubjectIdType

KeyIdColumn

Gets the column containing the encryption key ID.

public required string KeyIdColumn { get; init; }

Property Value

string

StoreKind

Gets the kind of store that holds this registered location.

public DataStoreKind StoreKind { get; init; }

Property Value

DataStoreKind

Remarks

Defaults to Unknown. An erasure contributor discharges a declared pair only when this kind is one it covers, so an unclassified registration discharges NOTHING and the erasure refuses to complete. That is deliberate: a registration whose store nobody claims is an obligation nobody has shown they erased, and silence must fail closed.

TableName

Gets the table or collection name.

public required string TableName { get; init; }

Property Value

string

TenantId

Gets the tenant that owns this registration.

public string? TenantId { get; init; }

Property Value

string

Remarks

The tenant VALUE, as distinct from TenantIdColumn's column name. This participates in the primary key of the stored registration, so two tenants registering the same table and field are two distinct rows rather than one overwriting the other.

A registration that genuinely belongs to no tenant carries the reserved untenanted sentinel rather than null once stored: a nullable tenant makes "global" and "the caller forgot" indistinguishable, and the store cannot tell which one it is holding.

TenantIdColumn

Gets an optional tenant ID column.

public string? TenantIdColumn { get; init; }

Property Value

string

Remarks

This is the NAME of a column in the consumer's own table — it records where that table keeps its tenant identifier. It does not associate this registration with a tenant and it never restricts which registrations a caller may read. Use TenantId for that; the two are easy to confuse and the confusion is what made data-inventory reads estate-wide while appearing scoped.