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 TypeMethodDescriptionvoidClears the last set value of the tenant.The id of the tenant.booleanFlag indicating whether the tenant id is set.voidsetTenantId(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:TenantContextThe id of the tenant.- Specified by:
getTenantIdin interfaceTenantContext- Returns:
- the id of the tenant
-
setTenantId
Description copied from interface:TenantContextChanges the tenant id with the new value.- Specified by:
setTenantIdin interfaceTenantContext- Parameters:
tenantId- the id of the tenant
-
clearTenantId
public void clearTenantId()Description copied from interface:TenantContextClears the last set value of the tenant.- Specified by:
clearTenantIdin interfaceTenantContext
-
isTenantIdSet
public boolean isTenantIdSet()Description copied from interface:TenantContextFlag indicating whether the tenant id is set.- Specified by:
isTenantIdSetin interfaceTenantContext- Returns:
trueif the tenant id can return a value forTenantContext.getTenantId(),falseotherwise
-