Companion

Properties

Link copied to clipboard

Every aggregate is in its caller's tenant.

Functions

Link copied to clipboard
fun configured(tenants: Map<String, String>, types: Collection<AggregateType>, whose: String, entryKey: (String) -> String, tenantKey: (String) -> String): TenantPolicy

The fixed tenants a configuration names (fixed): tenants maps the name of a type, <context>.<aggregate>, to its tenant, and each name is one of types, which whose says whose they are. A name of no such type, or a blank tenant, is a WowConfigurationException of the key entryKey or tenantKey gives the name: one rule and one wording wherever a fixed tenant is configured, the host's wow.aggregates.[<name>].tenant and migrate-data's tenants, whose check reads the same fixed tenants the host's configuration states.

Link copied to clipboard

The one tenant caller reaches (reaches): its own; null for a caller that may act across scopes, which reaches every tenant. A read that a store filters by tenant takes it.

Link copied to clipboard

The aggregates of each type of tenants are in its tenant, those of the other types in their caller's.

Link copied to clipboard
fun reaches(caller: Caller, tenantId: String): Boolean

Whether caller reaches what is in tenantId, whatever tenant a type is fixed to: its own tenant, and every tenant for a caller that may act across scopes.