SystemView

data class SystemView(val id: String, val definitionId: String, val title: String, val kind: ViewKind, val revision: String, val config: ObjectNode, val source: SystemViewSource = SystemViewSource.CONFIGURED, val version: Int? = null)

A view every user of a tenant's application reads, served under the shared owner: one the server configures (SystemViewSource.CONFIGURED, read-only), or one stored as a view of the tenant (platform) under the owner (system) (SystemViewSource.STORED), global to every tenant. Its id never starts with system: (kept for views declared in code), and its revision is a hash of its content, whatever its source.

Constructors

Link copied to clipboard
constructor(id: String, definitionId: String, title: String, kind: ViewKind, revision: String, config: ObjectNode, source: SystemViewSource = SystemViewSource.CONFIGURED, version: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val config: ObjectNode

the engine's ViewConfig.

Link copied to clipboard

the definition it is a view of.

Link copied to clipboard
val id: String

its id: a configured view's own, a stored view's aggregate id.

Link copied to clipboard

its kind, config.kind.

Link copied to clipboard

a hash of its definition, title and config.

Link copied to clipboard

Always system: the engine reads the scope from it.

Link copied to clipboard

where it comes from.

Link copied to clipboard

its title.

Link copied to clipboard
val version: Int?

the stored view's aggregate version, which a write through the view routes expects (Command-Aggregate-Version); null for a configured view.