CallerAdmission

What a command records of the caller that sends it, as admission derives it: the tenant it is sent in (tenantId), the scope it acts in, the operator that sends it and the request facts of the caller, its application's among them. The command gateway (for every request: the edge's, the node's own CommandClient's, a relayed peer command's) and the test DSL decide them alike (admit), refusing alike a caller that may not send the command there, and record the request's facts under them alike (headersOf).

Types

Link copied to clipboard
Link copied to clipboard
class Refused(val code: String, val message: String) : CallerAnswer

The refusal admit answers, with its code (FrameworkCodes) and its message, as the gateway gives it.

Properties

Link copied to clipboard

The caller's request facts: its application as RequestFacts.APP_ID when it has one.

Link copied to clipboard

The caller's operator, acting elsewhere when there is a target; null for an anonymous caller.

Link copied to clipboard

The target's scope when there is one, else the caller's.

Link copied to clipboard

The tenant the command is sent in: the type's fixed one, else the target's, else the caller's.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

The request facts headers as a command of this caller records them: with the caller's facts in place of any of their names (FACTS), which no request sets, whoever builds it; no copy when there is nothing to add or drop.

Link copied to clipboard
open override fun toString(): String