GivenShare

data class GivenShare(val receiver: ShareReceiver, val mode: ShareMode, val resourceUri: String, val createdAt: String? = null, val resourceType: String? = null, val resourceName: String? = null) : Parcelable

A share the user has given (created) — the user grants receiver access of mode on resourceUri. Stored in {podRoot}/solidshare/shares/given_shares.ttl.

createdAt is the ISO-8601 instant the share was created (dcterms:created on the index record), or null for legacy rows written before timestamps existed or rows reconstructed from a pod ACL scan (where the moment is unknown). Several modes for the same (receiver, resourceUri) pair share the one record, hence the one timestamp.

resourceType is the RDF class IRI of the entity the share carries (e.g. https://schema.org/Ticket) when the share was created for a data-module entity, and resourceName its human title at share time (solidshare:resourceType / dcterms:title on the index record). Both are null for plain file/folder shares, legacy rows, and ACL-scan rows — readers must render unknown or absent types generically.

Constructors

Link copied to clipboard
constructor(receiver: ShareReceiver, mode: ShareMode, resourceUri: String, createdAt: String? = null, resourceType: String? = null, resourceName: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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