Interface IDataPortabilityService
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Provides GDPR Article 20 data portability capabilities for exporting personal data.
public interface IDataPortabilityService
Remarks
This service enables data subjects to receive their personal data in a structured, commonly used, and machine-readable format for transfer to another controller.
Methods
ExportAsync(string, ExportFormat, CancellationToken)
Exports all personal data for a data subject in the specified format.
Task<DataExportResult> ExportAsync(string subjectId, ExportFormat format, CancellationToken cancellationToken)
Parameters
subjectIdstringThe data subject identifier.
formatExportFormatThe export format.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<DataExportResult>
The export result containing the export identifier and metadata.
Exceptions
- ArgumentException
Thrown when
subjectIdis null or whitespace.
GetExportStatusAsync(string, CancellationToken)
Gets the status of a previously initiated export operation.
Task<DataExportResult?> GetExportStatusAsync(string exportId, CancellationToken cancellationToken)
Parameters
exportIdstringThe export identifier returned from ExportAsync(string, ExportFormat, CancellationToken).
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<DataExportResult>
The export result, or null if not found.