ShareReceiver

sealed class ShareReceiver : Parcelable

Identifies the recipient of a share.

  • WebIdReceiver — a single Solid user identified by WebID.

  • GroupReceiver — a vcard:Group whose members are granted access.

  • Public — any agent (foaf:Agent); resource is reachable by URL.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class GroupReceiver(val groupUri: String) : ShareReceiver
Link copied to clipboard
data object Public : ShareReceiver
Link copied to clipboard
data class WebIdReceiver(val webId: String) : ShareReceiver

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
fun kind(): Int

The discriminator used to flatten this receiver for AIDL transport, one of KIND_WEBID, KIND_GROUP, or KIND_PUBLIC. Pair with value and reconstruct via fromKind.

Link copied to clipboard
abstract fun toRdfSubject(): String

The RDF subject IRI used to represent this receiver in a share index: the WebID, the group URI, or foaf:Agent for Public. Reverse with from.

Link copied to clipboard
fun value(): String?

The IRI payload that accompanies kind over AIDL: the WebID or group URI, or null for Public (which carries no identifier).

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