OrderingAuthorization

@Configuration(proxyBeanMethods = false)
class OrderingAuthorization

Who ships an order. An order is its buyer's: the buyer reads it, and the kernel keeps every other buyer from it. The orderingAuthorizer keeps the buyer from shipping it, which only an employee does, a tenant-level caller: in development, a Wow-User without a Wow-Owner; behind the CoSec gateway, a principal of the role employee. The order process's commands reach the order on the context's command topic, outside admission, and a service's call on the internal port is a service identity's: the authorizer refuses neither.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

A buyer may not ship its order. Every other command, a buyer's delete of its own order among them, is the kernel's to keep in the caller's scope; Wow's operational commands are orderingOperators'.

Link copied to clipboard

Wow's operational commands (a scheduled job's, the snapshot rebuild, an operator's action on a parked entry) are an employee's alone, a tenant-level caller with a subject: this authorizer decides them, so the public port and the operator's routes serve them (CommandAuthorizer.operational).