Table of Contents

Interface ISoc2ReportStore

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

Storage interface for SOC 2 compliance reports.

public interface ISoc2ReportStore

Remarks

Reports should be stored for audit purposes with tamper-evident integrity verification and configurable retention (default: 7 years per EvidenceRetentionPeriod).

Methods

DeleteReportAsync(Guid, CancellationToken)

Deletes a report by its identifier.

Task<bool> DeleteReportAsync(Guid reportId, CancellationToken cancellationToken)

Parameters

reportId Guid

The report identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

True if the report was deleted; false if not found.

Remarks

Consider retention policies before deleting reports. Audit regulations may require reports to be retained for 7+ years.

GetReportAsync(Guid, CancellationToken)

Gets a report by its identifier.

Task<Soc2Report?> GetReportAsync(Guid reportId, CancellationToken cancellationToken)

Parameters

reportId Guid

The report identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<Soc2Report>

The report if found; otherwise null.

GetReportCountAsync(ReportFilter, CancellationToken)

Gets the total count of reports matching the filter.

Task<int> GetReportCountAsync(ReportFilter filter, CancellationToken cancellationToken)

Parameters

filter ReportFilter

Filter criteria for the query.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<int>

The total count of matching reports.

ListReportsAsync(ReportFilter, CancellationToken)

Lists reports matching the specified criteria.

Task<IReadOnlyList<ReportSummary>> ListReportsAsync(ReportFilter filter, CancellationToken cancellationToken)

Parameters

filter ReportFilter

Filter criteria for the query.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyList<ReportSummary>>

Reports matching the filter criteria.

SaveReportAsync(Soc2Report, CancellationToken)

Saves a generated report.

Task SaveReportAsync(Soc2Report report, CancellationToken cancellationToken)

Parameters

report Soc2Report

The report to save.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task representing the asynchronous operation.