Interface TenantInfoHolder


public interface TenantInfoHolder
Interface to be implemented when using the org.flowable.engine.impl.cfg.multitenant.MultiSchemaMultiTenantProcessEngineConfiguration and used to set/get the current user and tenant identifier. The engine will call the getCurrentTenantId() method when it needs to know which database to use. Typically used with ThreadLocal's in the implementation.
Author:
Joram Barrez
  • Method Details

    • getAllTenants

      Collection<String> getAllTenants()
      Returns all known tenant identifiers.
    • setCurrentTenantId

      void setCurrentTenantId(String tenantid)
      Sets the current tenant identifier.
    • getCurrentTenantId

      String getCurrentTenantId()
      Returns the current tenant identifier.
    • clearCurrentTenantId

      void clearCurrentTenantId()
      Clears the current tenant identifier settings.