类 SecurityTenantSupplier
java.lang.Object
io.github.mangocrisp.spring.taybct.tool.security.config.SecurityTenantSupplier
- 所有已实现的接口:
ITenantSupplier
如果没有配置特定的租户配置,就会使用这个基于安全模块的租户获取方式,从用户的登录信息中去获取租户信息
- 从以下版本开始:
- 1.0.0
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明是否开启多租户提供获取租户 id 的方式获取用于区分租户的字段获取租户表
-
构造器详细资料
-
SecurityTenantSupplier
public SecurityTenantSupplier()
-
-
方法详细资料
-
getTenantId
从接口复制的说明:ITenantSupplier
提供获取租户 id 的方式- 指定者:
getTenantId
在接口中ITenantSupplier
- 返回:
- String
-
getDefaultTenantId
-
getTenantTables
从接口复制的说明:ITenantSupplier
获取租户表- 指定者:
getTenantTables
在接口中ITenantSupplier
- 返回:
Set<String>
-
getTenantIdColumn
从接口复制的说明:ITenantSupplier
获取用于区分租户的字段- 指定者:
getTenantIdColumn
在接口中ITenantSupplier
- 返回:
- String
-
getEnable
从接口复制的说明:ITenantSupplier
是否开启多租户- 指定者:
getEnable
在接口中ITenantSupplier
- 返回:
- boolean
-