public interface TenantConfigProvider
TenantConfig.| Modifier and Type | Method and Description |
|---|---|
TenantConfig |
find(String tenantId)
Find
TenantConfig for the given tenant identifier. |
List<TenantConfig> |
findAll(String host)
Find all
TenantConfig for the given hostname. |
boolean |
hasAccess(User user,
TenantConfig config)
Check whether the user has permission to use given tenant.
|
TenantConfig find(String tenantId)
TenantConfig for the given tenant identifier.tenantId - the tenant identifierTenantConfigList<TenantConfig> findAll(String host)
TenantConfig for the given hostname.host - the hostnameTenantConfig matching the given hostnameboolean hasAccess(User user, TenantConfig config)
user - the user to checkconfig - the tenant configuration to check