AdminRightRow class
One right as the administrator's rights console shows it: a recorded RightRecord
restated with the membership facts an administrator needs (subjectMember,
granterDeparted), or a role-derived grant that carries no record.
git-ns/right/list and git-ns/right/issued-by-departed are its only producers.
Constructors
- AdminRightRow({required Did subject, required Right right, required Resource resource, required RightOrigin origin, Did? grantedBy, String? grantedAt, String? expiresAt, String? reason, required bool subjectMember, required bool granterDeparted, BreakGlass? breakGlass})
-
const
-
AdminRightRow.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- breakGlass → BreakGlass?
-
Present exactly when
originisrecordedand the record carriesbreakGlass— seeRightRecord.breakGlass. Absent for a role-derived grant, which cannot be self-granted through break-glass.final - expiresAt → String?
-
When the right lapses. Absent: no expiry, or
originisroleDerived(a role-derived grant never expires on its own — it is withdrawn by editing\[hooks.git-trust\] grant_on_role).final - grantedAt → String?
-
Present exactly when
originisrecorded.final - grantedBy → String?
-
Who caused the right (see
RightRecord.grantedBy). Present exactly whenoriginisrecorded; a role-derived grant is published by the hook relay from configuration, not by an actor.final - granterDeparted → bool
-
Whether
grantedBywas a member at the time of the grant and has since left. AlwaysfalsewhenoriginisroleDerived, or when the record's granter was never itself a member (the VTC's own DID, for a right it derives from configuration).final - hashCode → int
-
The hash code for this object.
no setterinherited
- origin → RightOrigin
-
final
- reason → String?
-
The granter's free-text reason, restated from the
RightRecord. Absent whenoriginisroleDerived, or the record carries none.final - resource → ForgeHost
-
final
- right → Right
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subject → ForgeHost
-
Who holds the right.
final
- subjectMember → bool
-
Whether
subjectis a current member of the community.falsemarks a right held by someone who has since left, or by an external signer the community never enrolled.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → ForgeHost -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited