Interface IDataInventoryService
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Service for discovering personal data associated with a data subject.
public interface IDataInventoryService
Remarks
The data inventory service supports:
- Automatic discovery from [PersonalData] attributed fields
- Manual registration for custom data locations
- Data mapping for GDPR RoPA (Records of Processing Activities)
Methods
DiscoverAsync(string, DataSubjectIdType, string?, CancellationToken)
Discovers all personal data for a data subject.
Task<DataInventory> DiscoverAsync(string dataSubjectId, DataSubjectIdType idType, string? tenantId, CancellationToken cancellationToken)
Parameters
dataSubjectIdstringThe data subject identifier.
idTypeDataSubjectIdTypeType of the identifier.
tenantIdstringOptional tenant context.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<DataInventory>
Complete data inventory for the subject.
GetDataMapAsync(string?, CancellationToken)
Gets the data map for compliance reporting (RoPA).
Task<DataMap> GetDataMapAsync(string? tenantId, CancellationToken cancellationToken)
Parameters
tenantIdstringOptional tenant filter.
cancellationTokenCancellationTokenCancellation token.
Returns
RegisterDataLocationAsync(DataLocationRegistration, CancellationToken)
Registers a manual data location for erasure.
Task RegisterDataLocationAsync(DataLocationRegistration registration, CancellationToken cancellationToken)
Parameters
registrationDataLocationRegistrationThe data location to register.
cancellationTokenCancellationTokenCancellation token.
Returns
UnregisterDataLocationAsync(string, string, CancellationToken)
Removes a registered data location.
Task UnregisterDataLocationAsync(string tableName, string fieldName, CancellationToken cancellationToken)
Parameters
tableNamestringThe table name.
fieldNamestringThe field name.
cancellationTokenCancellationTokenCancellation token.