Interface IAccessReviewStore
- Namespace
- Excalibur.A3.Governance.AccessReviews
- Assembly
- Excalibur.A3.Governance.Abstractions.dll
Read-model query store for access review campaigns and decisions.
public interface IAccessReviewStore
Remarks
This is NOT the aggregate's persistence store. The AccessReviewCampaign aggregate
is event-sourced via IEventSourcedRepository<AccessReviewCampaign>.
This store provides query access for dashboards, reports, and reviewer UIs.
Follows the IRoleStore pattern: a focused query interface backed by AccessReviewCampaignSummary DTOs.
Methods
DeleteCampaignAsync(string, CancellationToken)
Deletes a campaign summary.
Task<bool> DeleteCampaignAsync(string campaignId, CancellationToken cancellationToken)
Parameters
campaignIdstringThe campaign identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
GetCampaignAsync(string, CancellationToken)
Retrieves a campaign summary by its identifier.
Task<AccessReviewCampaignSummary?> GetCampaignAsync(string campaignId, CancellationToken cancellationToken)
Parameters
campaignIdstringThe campaign identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<AccessReviewCampaignSummary>
The campaign summary, or null if not found.
GetCampaignsByStateAsync(AccessReviewState?, CancellationToken)
Retrieves all campaigns matching the specified state filter.
Task<IReadOnlyList<AccessReviewCampaignSummary>> GetCampaignsByStateAsync(AccessReviewState? state, CancellationToken cancellationToken)
Parameters
stateAccessReviewState?The state to filter by, or null for all campaigns.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<AccessReviewCampaignSummary>>
Campaigns matching the filter.
GetService(Type)
Gets a service of the specified type, or null if not available.
object? GetService(Type serviceType)
Parameters
serviceTypeTypeThe type of service to retrieve.
Returns
SaveCampaignAsync(AccessReviewCampaignSummary, CancellationToken)
Saves or updates a campaign summary (upsert).
Task SaveCampaignAsync(AccessReviewCampaignSummary campaign, CancellationToken cancellationToken)
Parameters
campaignAccessReviewCampaignSummaryThe campaign summary to save.
cancellationTokenCancellationTokenCancellation token.