Interface TenantResolver
- All Known Implementing Classes:
- AbstractSubdomainTenantResolver,- CookieTenantResolver,- FixedTenantResolver,- HttpHeaderTenantResolver,- InternetDomainNameSubdomainTenantResolver,- PrincipalTenantResolver,- PublicSuffixListSubdomainTenantResolver,- SessionTenantResolver,- SubdomainTenantResolver,- SystemPropertyTenantResolver
public interface TenantResolver
An interface for applications that implement Multi Tenancy to implement in order to resolve the current identifier.
- Since:
- 1.0
- Author:
- Sergio del Amo
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault StringResolves the current tenant identifier.@NonNull SerializableDeprecated, for removal: This API element is subject to removal in a future version.
- 
Field Details- 
PREFIXTenant Resolver Configuration Prefix.- See Also:
 
- 
DEFAULTThe name of the default tenant.- See Also:
 
- 
ALLConstant for a mapping to all tenants.- See Also:
 
 
- 
- 
Method Details- 
resolveTenantIdentifier@Deprecated(forRemoval=true, since="5.5.0") @NonNull @NonNull Serializable resolveTenantIdentifier() throws TenantNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.UseresolveTenantId()insteadResolves the current tenant identifier. In a Multi Tenant setup where a single database is being used amongst multiple tenants this would be the object that is used as the tenantId property for each domain class. - Returns:
- The tenant identifier
- Throws:
- TenantNotFoundException- if tenant not found
 
- 
resolveTenantIdResolves the current tenant identifier. In a Multi Tenant setup where a single database is being used amongst multiple tenants this would be the object that is used as the tenantId property for each domain class. - Returns:
- The tenant identifier
- Throws:
- TenantNotFoundException- if tenant not found
- Since:
- 5.5.0
 
 
- 
resolveTenantId()instead