Interface TenantResolver
public interface TenantResolver
Resolves tenant identifier dynamically so that the proper configuration can be used.
- Author:
- Michael Schnell
-
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier of the default tenant.default boolean
Does the given tenant id represent a "root" tenant with access to all partitions?Returns the current tenant identifier.
-
Method Details
-
getDefaultTenantId
String getDefaultTenantId()Returns the identifier of the default tenant.- Returns:
- Default tenant.A non-null value is required.
-
resolveTenantId
String resolveTenantId()Returns the current tenant identifier.- Returns:
- the tenant identifier. This value will be used to select the proper configuration at runtime. A non-null value is required.
-
isRoot
Does the given tenant id represent a "root" tenant with access to all partitions?- Parameters:
tenantId
- a tenant id produced byresolveTenantId()
- Returns:
- true is this is root tenant
-