StoredSystemViews

class StoredSystemViews(configured: ConfiguredSystemViews, queries: () -> NodeQueryApi?)

The system views a request reads: the configured ones of its tenant and application and the stored ones of its application (views of the tenant (platform) under the owner (system)), which every tenant reads. A stored view wins over a configured one with the same id. The stored ones are read as trusted code, the view store's own, from the tenant (platform). A node whose backend serves no snapshot query serves the configured ones alone.

Constructors

Link copied to clipboard
constructor(configured: ConfiguredSystemViews, queries: () -> NodeQueryApi?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun systemView(tenantId: String, appId: String, id: String): SystemView?

System view id of tenantId and appId: the stored one, else the configured one; null when neither is.

Link copied to clipboard
suspend fun systemViews(tenantId: String, appId: String, definitionId: String? = null): List<SystemView>

Every system view of tenantId and appId, of definitionId when it is given: the configured first.