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
tenantIdstringThe tenant identifier. Required; must be non-empty.
activityGroupNamestringThe name of the activity group to check for existence.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<bool>
A Task<TResult> that resolves to
trueiftenantIdhas 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
userIdstringThe unique identifier of the user whose grants will be synchronized.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
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
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
SyncAllActivityGroupGrantsAsync(CancellationToken)
Synchronizes the grants (permissions or roles) for all users across all activity groups.
Task SyncAllActivityGroupGrantsAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.