Interface TenantInfoHolder
-
public interface TenantInfoHolderInterface 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 thegetCurrentTenantId()method when it needs to know which database to use. Typically used withThreadLocal's in the implementation.- Author:
- Joram Barrez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCurrentTenantId()Clears the current tenant identifier settings.Collection<String>getAllTenants()Returns all known tenant identifiers.StringgetCurrentTenantId()Returns the current tenant identifier.voidsetCurrentTenantId(String tenantid)Sets the current tenant identifier.
-
-
-
Method Detail
-
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.
-
-