ContainersStoreInterface

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun create(name: String, icon: ContainerIcon, color: ContainerColor): Container
Link copied to clipboard
abstract fun createForPolicy(policyId: String): Container
Link copied to clipboard
abstract fun getSiteAssociation(site: String): UInt

The container bound to site, or 0 when there is none.

Link copied to clipboard
abstract fun getSiteAssociations(userContextId: UInt?): List<SiteAssociation>
Link copied to clipboard
abstract fun moveContainers(userContextIds: List<UInt>, position: Long): Boolean

Moves the given public containers before position, or to the end when it is -1. Positions below -1 are rejected.

Link copied to clipboard
Link copied to clipboard
abstract fun policyIdentity(policyId: String): Container?
Link copied to clipboard
abstract fun privateIdentity(name: String): Container?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun publicIdentityFromId(userContextId: UInt): Container?
Link copied to clipboard
abstract fun publicUserContextIds(): List<UInt>
Link copied to clipboard
abstract fun remove(userContextId: UInt): Container?

Removes a public container. Clearing the data stored under its origin attributes is the embedder's job.

Link copied to clipboard
abstract fun removePolicyIdentity(userContextId: UInt): Container?
Link copied to clipboard
abstract fun removeSiteAssociation(site: String)
Link copied to clipboard
abstract fun serialize(): ByteArray

The document as it stands, for the embedder to write.

Link copied to clipboard
abstract fun setSiteAssociation(site: String, userContextId: UInt)
Link copied to clipboard
abstract fun unsetCallback()

Drops the callback, so that a late mutation during teardown cannot reach an embedder that is already gone.

Link copied to clipboard
abstract fun update(userContextId: UInt, name: String, icon: ContainerIcon, color: ContainerColor): Container?