Struct ActivityGroupGrantEntry
- Namespace
- Excalibur.A3.Authorization
- Assembly
- Excalibur.A3.Abstractions.dll
One activity-group grant: a single row of an activity-group grant snapshot.
public readonly record struct ActivityGroupGrantEntry : IEquatable<ActivityGroupGrantEntry>
- Implements
- Inherited Members
Remarks
An entry carries no validation of its own, because default can always construct one. It is validated when it is placed into an ActivityGroupGrantSnapshot, which is the only form a store accepts for a grant replace.
Constructors
ActivityGroupGrantEntry(string, string, string, string, string, DateTimeOffset?, string)
One activity-group grant: a single row of an activity-group grant snapshot.
public ActivityGroupGrantEntry(string UserId, string FullName, string TenantId, string GrantType, string Qualifier, DateTimeOffset? ExpiresOn, string GrantedBy)
Parameters
UserIdstringThe user the grant is held by, as a bare value.
FullNamestringThe user's display name. May be empty when the authority sends none.
TenantIdstringThe tenant the grant applies within, as a bare value.
GrantTypestringThe grant type this row carries.
QualifierstringWhat is granted — for an activity-group grant, the group's name.
ExpiresOnDateTimeOffset?When the grant stops conferring anything, or null to never expire.
GrantedBystringThe actor the grant is recorded against.
Remarks
An entry carries no validation of its own, because default can always construct one. It is validated when it is placed into an ActivityGroupGrantSnapshot, which is the only form a store accepts for a grant replace.
Properties
ExpiresOn
When the grant stops conferring anything, or null to never expire.
public DateTimeOffset? ExpiresOn { get; init; }
Property Value
FullName
The user's display name. May be empty when the authority sends none.
public string FullName { get; init; }
Property Value
GrantType
The grant type this row carries.
public string GrantType { get; init; }
Property Value
GrantedBy
The actor the grant is recorded against.
public string GrantedBy { get; init; }
Property Value
Qualifier
What is granted — for an activity-group grant, the group's name.
public string Qualifier { get; init; }
Property Value
TenantId
The tenant the grant applies within, as a bare value.
public string TenantId { get; init; }
Property Value
UserId
The user the grant is held by, as a bare value.
public string UserId { get; init; }