ViewReads

interface ViewReads

The view store's reads of views that ViewStoreRoutes answers: the snapshot queries and the configured system views, kept behind this port so the domain does not depend on the query stack. The service binds it. Every read is of one application: a view another application wrote reads as none.

Functions

Link copied to clipboard
abstract suspend fun savedViews(tenantId: String, appId: String, id: String, owners: Set<String>): List<ViewEntry>

The saved views id of tenantId and appId that one of owners owns, not deleted.

Link copied to clipboard
abstract 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
abstract suspend fun systemViews(tenantId: String, appId: String, definitionId: String? = null): List<SystemView>

The system views of tenantId and appId, configured and stored, of definitionId when it is given; a stored one wins over a configured one with the same id.