Table of Contents

Interface IActivityGroupService

Namespace
Excalibur.A3.Authorization
Assembly
Excalibur.A3.dll

Defines methods for managing activity groups and synchronizing their associated data.

public interface IActivityGroupService

Methods

ExistsAsync(string, string, CancellationToken)

Checks whether tenantId has an activity group with the specified name.

Task<bool> ExistsAsync(string tenantId, string activityGroupName, CancellationToken cancellationToken)

Parameters

tenantId string

The tenant identifier. Required; must be non-empty.

activityGroupName string

The name of the activity group to check for existence.

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task<bool>

A Task<TResult> that resolves to true if tenantId has a group so named; otherwise, false .

Remarks

The tenant term is part of the question rather than a filter on it: a group name is unique only within a tenant, so a bare-name check answers estate-wide and reports another tenant's group as this tenant's. This member is a pass-through, and a pass-through that drops the tenant would leave the hole one layer above the store that closed it.

SyncActivityGroupGrantsAsync(string, CancellationToken)

Synchronizes the grants (permissions or roles) of the activity groups for a specific user.

Task SyncActivityGroupGrantsAsync(string userId, CancellationToken cancellationToken)

Parameters

userId string

The unique identifier of the user whose grants will be synchronized.

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task

A Task representing the asynchronous operation.

SyncActivityGroupsAsync(CancellationToken)

Synchronizes all activity groups by updating or creating them based on the current state of the source data.

Task SyncActivityGroupsAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task

A Task representing the asynchronous operation.

SyncAllActivityGroupGrantsAsync(CancellationToken)

Synchronizes the grants (permissions or roles) for all users across all activity groups.

Task SyncAllActivityGroupGrantsAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task

A Task representing the asynchronous operation.