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.
  • Constructor Details

  • Method Details

    • getCurrentUserTenantId

      public String getCurrentUserTenantId()
      Returns the tenant ID of a logged in user.
      Specified by:
      getCurrentUserTenantId in interface TenantProvider
      Returns:
      tenant ID of a logged in user, 'no_tenant' if the user doesn't have a tenant ID