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
reportIdGuidThe report identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
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
reportIdGuidThe report identifier.
cancellationTokenCancellationTokenCancellation 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
filterReportFilterFilter criteria for the query.
cancellationTokenCancellationTokenCancellation token.
Returns
ListReportsAsync(ReportFilter, CancellationToken)
Lists reports matching the specified criteria.
Task<IReadOnlyList<ReportSummary>> ListReportsAsync(ReportFilter filter, CancellationToken cancellationToken)
Parameters
filterReportFilterFilter criteria for the query.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<ReportSummary>>
Reports matching the filter criteria.
SaveReportAsync(Soc2Report, CancellationToken)
Saves a generated report.
Task SaveReportAsync(Soc2Report report, CancellationToken cancellationToken)
Parameters
reportSoc2ReportThe report to save.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
A task representing the asynchronous operation.