Package io.jmix.multitenancy.core.impl
Class TenantProviderImpl
java.lang.Object
io.jmix.multitenancy.core.impl.TenantProviderImpl
- All Implemented Interfaces:
TenantProvider
@Component("mten_TenantProvider")
public class TenantProviderImpl
extends Object
implements TenantProvider
Implementation of
TenantProvider
based on CurrentAuthentication
.-
Field Summary
Fields inherited from interface io.jmix.multitenancy.core.TenantProvider
NO_TENANT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the tenant ID of a logged in user.protected String
getTenantIdFieldName
(Class<?> clazz)
-
Constructor Details
-
TenantProviderImpl
-
-
Method Details
-
getCurrentUserTenantId
Returns the tenant ID of a logged in user.- Specified by:
getCurrentUserTenantId
in interfaceTenantProvider
- Returns:
- tenant ID of a logged in user, 'no_tenant' if the user doesn't have a tenant ID
-
getTenantIdFieldName
-