using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace xIdentityService.Interfaces
{
public interface IXRoleHierarchyResolver
{
///
/// Retrieve All Enabled Role Names which Weight >= minWeight ...
///
///
///
///
Task> GetRolesByMinWeightAsync(
int minWeight,
CancellationToken cancellationToken = default
);
///
/// Retrieve Effective Roles for a Policy
/// (explicit RequiredRoles ∪ roles by MinRoleWeight ∪ parents chain) ...
///
///
///
///
///
Task> ResolveEffectiveRolesAsync(
IEnumerable explicitRoles,
int? minRoleWeight,
CancellationToken cancellationToken = default
);
}
}