Class ThreadLocalTenantContext
java.lang.Object
org.flowable.common.engine.impl.tenant.ThreadLocalTenantContext
- All Implemented Interfaces:
TenantContext
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the last set value of the tenant.The id of the tenant.boolean
Flag indicating whether the tenant id is set.void
setTenantId
(String tenantId) Changes the tenant id with the new value.
-
Field Details
-
tenantId
-
-
Constructor Details
-
ThreadLocalTenantContext
public ThreadLocalTenantContext()
-
-
Method Details
-
getTenantId
Description copied from interface:TenantContext
The id of the tenant.- Specified by:
getTenantId
in interfaceTenantContext
- Returns:
- the id of the tenant
-
setTenantId
Description copied from interface:TenantContext
Changes the tenant id with the new value.- Specified by:
setTenantId
in interfaceTenantContext
- Parameters:
tenantId
- the id of the tenant
-
clearTenantId
public void clearTenantId()Description copied from interface:TenantContext
Clears the last set value of the tenant.- Specified by:
clearTenantId
in interfaceTenantContext
-
isTenantIdSet
public boolean isTenantIdSet()Description copied from interface:TenantContext
Flag indicating whether the tenant id is set.- Specified by:
isTenantIdSet
in interfaceTenantContext
- Returns:
true
if the tenant id can return a value forTenantContext.getTenantId()
,false
otherwise
-