Class: TenantProvider

TenantProvider(tenantIdnullable)

The current tenant provider. This object is passed to the `ActorRequestFactory` and is used during creation of all client-side requests. The current tenant ID can be switched dynamically with the help of the `update` method. If it is necessary to update the current ID to a "no tenant" value (to work in a single-tenant environment), pass the default tenant ID to the `update` method as follows: `tenantProvider.update(new TenantId())`.

Constructor

new TenantProvider(tenantIdnullable)

Creates a new `TenantProvider` configured with the passed tenant ID. The argument may be omitted but until the `_tenantId` is assigned some non-default value, the application is considered single-tenant.
Parameters:
Name Type Attributes Description
tenantId TenantId <nullable>
the ID of the currently active tenant
Source:

Classes

TenantProvider

Methods

tenantId() → {TenantId}

Returns the currently active tenant ID.
Source:
Returns:
Type
TenantId

update(tenantIdnon-null)

Parameters:
Name Type Description
tenantId TenantId the ID of the currently active tenant
Source: