ViewApps

object ViewApps

The application a command comes from: its standard request fact app_id (RequestFacts.APP_ID), the application the service's caller resolver authenticated for the request (CoSec's: the app of the request's CoSec scope). A client's own header is never read.

Functions

Link copied to clipboard
fun appOf(command: Command<*>): String?

The application of command, or null when its request had none.

Link copied to clipboard
inline fun appRequired(): Nothing

Rejects a command whose request names no application.

Link copied to clipboard
fun rejectOtherApp(command: Command<*>, stateAppId: String)

Rejects command when it does not come from stateAppId, the application the aggregate was written in: a command of another application reads the aggregate as not found, so it does not learn that it exists.