GrantTarget

@Serializable
sealed class GrantTarget : Parcelable

What a grant entry applies to, as the host stores it after the user approved the grant.

An app names what it wants before sign-in with a RequestedTarget; the host resolves that against the chosen account into these, which carry absolute IRIs.

The serial names are persisted by hosts; never rename one.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "module")
data class Module(val id: String) : GrantTarget

A data module by its id, one of the constants in com.erfangholami.androidsolidservices.shared.model.datamodule.DataModuleId. Covers the module's own verbs and the containers the module occupies on the account, which only the host can resolve.

Link copied to clipboard
@Serializable
@SerialName(value = "pod")
data object Pod : GrantTarget

Everything the WebID reaches: every resource, every data module, sharing and notifications.

Link copied to clipboard
@Serializable
@SerialName(value = "resource")
data class Resource(val uri: String) : GrantTarget

One resource by IRI. A container (an IRI ending in /) covers its whole subtree; any other resource covers itself only.

Functions

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