类 TenantHandler
java.lang.Object
plus.hiver.common.config.tenant.TenantHandler
租户处理器 - 处理租户相关的业务逻辑
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void清除当前租户上下文获取当前租户上下文boolean检查租户功能是否启用voidsetCurrentTenant(Long tenantId) 设置当前租户上下文booleanshouldIgnoreTable(String tableName) 检查表是否需要忽略租户过滤
-
构造器详细资料
-
TenantHandler
-
-
方法详细资料
-
setCurrentTenant
设置当前租户上下文 -
getCurrentTenant
获取当前租户上下文 -
clearCurrentTenant
public void clearCurrentTenant()清除当前租户上下文 -
shouldIgnoreTable
检查表是否需要忽略租户过滤 -
isTenantEnabled
public boolean isTenantEnabled()检查租户功能是否启用
-