AccessGrant

data class AccessGrant(val direction: AccessGrantDirection, val counterpartWebId: String, val resourceUri: String, val mode: ShareMode, val status: AccessGrantStatus, val source: AccessGrantSource, val grantedAt: String?, val requestUri: String?) : Parcelable

A single access relationship between the current user and another agent over a resource, unified across every source the library can observe:

  • shares the user has given (from given_shares.ttl),

  • shares the user has received (from received_shares.ttl),

  • incoming access requests awaiting the user's decision (from the LDN inbox), and

  • grants discovered via Solid Application Interoperability (SAI) registries, when the pod exposes them.

This is the data behind a "who has access to what" overview. Items sourced from the app's own indexes (AccessGrantSource.APP_INDEX) are authoritative; AccessGrantSource.SAI_REGISTRY items are additive enrichment and may be absent on servers without SAI support.

Constructors

Link copied to clipboard
constructor(direction: AccessGrantDirection, counterpartWebId: String, resourceUri: String, mode: ShareMode, status: AccessGrantStatus, source: AccessGrantSource, grantedAt: String?, requestUri: String?)

Properties

Link copied to clipboard

The other party in the relationship: the receiver for AccessGrantDirection.GIVEN, the owner for AccessGrantDirection.RECEIVED, the requester for AccessGrantDirection.INCOMING_REQUEST.

Link copied to clipboard

Whether this grant is one the user gave, received, or was asked for.

Link copied to clipboard

as:published / interop:grantedAt timestamp string when known, else null. App-index given/received rows carry no timestamp.

Link copied to clipboard

Access mode involved.

Link copied to clipboard

URI of the originating inbox request, present only for AccessGrantDirection.INCOMING_REQUEST so the caller can accept or reject it.

Link copied to clipboard

Resource the access concerns.

Link copied to clipboard

Where this row was observed.

Link copied to clipboard

Whether the access is already in effect or still awaiting a decision.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)