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 Summary
Modifier and TypeMethodDescriptionvoidClears the current tenant identifier settings.Returns all known tenant identifiers.Returns the current tenant identifier.voidsetCurrentTenantId(String tenantid) Sets the current tenant identifier.
-
Method Details
-
getAllTenants
Collection<String> getAllTenants()Returns all known tenant identifiers. -
setCurrentTenantId
Sets the current tenant identifier. -
getCurrentTenantId
String getCurrentTenantId()Returns the current tenant identifier. -
clearCurrentTenantId
void clearCurrentTenantId()Clears the current tenant identifier settings.
-