Table of Contents

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

campaignId string

The campaign identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

true if the campaign was found and deleted; otherwise false.

GetCampaignAsync(string, CancellationToken)

Retrieves a campaign summary by its identifier.

Task<AccessReviewCampaignSummary?> GetCampaignAsync(string campaignId, CancellationToken cancellationToken)

Parameters

campaignId string

The campaign identifier.

cancellationToken CancellationToken

Cancellation 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

state AccessReviewState?

The state to filter by, or null for all campaigns.

cancellationToken CancellationToken

Cancellation 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

serviceType Type

The type of service to retrieve.

Returns

object

The service instance, or null.

SaveCampaignAsync(AccessReviewCampaignSummary, CancellationToken)

Saves or updates a campaign summary (upsert).

Task SaveCampaignAsync(AccessReviewCampaignSummary campaign, CancellationToken cancellationToken)

Parameters

campaign AccessReviewCampaignSummary

The campaign summary to save.

cancellationToken CancellationToken

Cancellation token.

Returns

Task