Interface TenantResolver
-
public interface TenantResolverResolves tenant identifier dynamically so that the proper configuration can be used.- Author:
- Michael Schnell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetDefaultTenantId()Returns the identifier of the default tenant.default booleanisRoot(String tenantId)Does the given tenant id represent a "root" tenant with access to all partitions?StringresolveTenantId()Returns the current tenant identifier.
-
-
-
Method Detail
-
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
default boolean isRoot(String tenantId)
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
-
-