Class RoleSummary
- Namespace
- Excalibur.A3.Authorization
- Assembly
- Excalibur.A3.Abstractions.dll
Provider-neutral read model for a role.
public sealed record RoleSummary : IEquatable<RoleSummary>
- Inheritance
-
RoleSummary
- Implements
- Inherited Members
Constructors
RoleSummary(string, string, string?, string?, IReadOnlyList<string>, IReadOnlyList<string>, RoleState, DateTimeOffset, string?)
Provider-neutral read model for a role.
public RoleSummary(string RoleId, string Name, string? Description, string? TenantId, IReadOnlyList<string> ActivityGroupNames, IReadOnlyList<string> ActivityNames, RoleState State, DateTimeOffset CreatedAt, string? ParentRoleName = null)
Parameters
RoleIdstringThe unique role identifier.
NamestringThe role display name.
DescriptionstringOptional role description.
TenantIdstringOptional tenant scope.
ActivityGroupNamesIReadOnlyList<string>Activity groups this role maps to.
ActivityNamesIReadOnlyList<string>Individual activities this role grants directly.
StateRoleStateCurrent role lifecycle state.
CreatedAtDateTimeOffsetWhen the role was created.
ParentRoleNamestringOptional parent role name for hierarchy inheritance. null indicates a root role.
Properties
ActivityGroupNames
Activity groups this role maps to.
public IReadOnlyList<string> ActivityGroupNames { get; init; }
Property Value
ActivityNames
Individual activities this role grants directly.
public IReadOnlyList<string> ActivityNames { get; init; }
Property Value
CreatedAt
When the role was created.
public DateTimeOffset CreatedAt { get; init; }
Property Value
Description
Optional role description.
public string? Description { get; init; }
Property Value
Name
The role display name.
public string Name { get; init; }
Property Value
ParentRoleName
Optional parent role name for hierarchy inheritance. null indicates a root role.
public string? ParentRoleName { get; init; }
Property Value
RoleId
The unique role identifier.
public string RoleId { get; init; }
Property Value
State
Current role lifecycle state.
public RoleState State { get; init; }
Property Value
TenantId
Optional tenant scope.
public string? TenantId { get; init; }