Table of Contents

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

subjectId string

The data subject identifier.

format ExportFormat

The export format.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<DataExportResult>

The export result containing the export identifier and metadata.

Exceptions

ArgumentException

Thrown when subjectId is null or whitespace.

GetExportStatusAsync(string, CancellationToken)

Gets the status of a previously initiated export operation.

Task<DataExportResult?> GetExportStatusAsync(string exportId, CancellationToken cancellationToken)

Parameters

exportId string

The export identifier returned from ExportAsync(string, ExportFormat, CancellationToken).

cancellationToken CancellationToken

Cancellation token.

Returns

Task<DataExportResult>

The export result, or null if not found.