ViewEndpoints

sealed class ViewEndpoints

One version's routes for the view store: the 9.x view store the example-server embeds (/view-store/tenant/{tenant} /owner/{owner}/…, the application in CoSec-App-Id), or the V10 view store service (/view-store/<aggregate>/{id} /<command>, the caller in Wow-User, Wow-Owner, Wow-Tenant and Wow-App, in a development profile). A preferences or wording body is the 9.x route's input; V10's command also names the definition or the dataset the 9.x path named. Every command is answered once its events are stored. The 9.x store closes its state routes, so a 9.x view is read from its snapshot, which the example-server writes at every version.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class NineX(base: URI) : ViewEndpoints

The 9.x view store, under the example-server's /view-store prefix.

Link copied to clipboard
class V10(base: URI) : ViewEndpoints

The V10 view store service.

Properties

Link copied to clipboard
val base: URI

Functions

Link copied to clipboard
abstract fun claim(view: ViewRef, toOwner: String): Outcome
Link copied to clipboard
abstract fun clearWording(tenant: String, dataset: String): Outcome
Link copied to clipboard
abstract fun create(tenant: String, owner: String, body: String): Outcome

Creates a view of owner's; the store chooses its id, which Outcome.id holds.

Link copied to clipboard
abstract fun delete(view: ViewRef): Outcome
Link copied to clipboard
abstract fun rename(view: ViewRef, title: String): Outcome
Link copied to clipboard
abstract fun save(view: ViewRef, config: String): Outcome
Link copied to clipboard
abstract fun setPreferences(tenant: String, owner: String, definition: String, body: String): Outcome
Link copied to clipboard
abstract fun setWording(tenant: String, dataset: String, body: String): Outcome
Link copied to clipboard
abstract fun share(view: ViewRef): Outcome
Link copied to clipboard
abstract fun states(views: List<ViewRef>): Map<String, Pair<Int, JsonNode>>

The views' versions and states, by id; a view that is not there (or deleted) is missing.