Interface TenantInfoHolder


  • @Deprecated
    public interface TenantInfoHolder
    Deprecated.
    multi-tenant code will be removed in future version of Activiti and Activiti Cloud
    Interface to be implemented when using the 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.
    • Method Detail

      • getAllTenants

        java.util.Collection<java.lang.String> getAllTenants()
        Deprecated.
        Returns all known tenant identifiers.
      • setCurrentTenantId

        void setCurrentTenantId​(java.lang.String tenantid)
        Deprecated.
        Sets the current tenant identifier.
      • getCurrentTenantId

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

        void clearCurrentTenantId()
        Deprecated.
        Clears the current tenant identifier settings.