Package com.axelor.db.tenants
Interface TenantConfigProvider
-
- All Known Implementing Classes:
TenantConfigProviderImpl
public interface TenantConfigProvider
The contract to provideTenantConfig
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TenantConfig
find(String tenantId)
FindTenantConfig
for the given tenant identifier.List<TenantConfig>
findAll(String host)
Find allTenantConfig
for the given hostname.boolean
hasAccess(User user, TenantConfig config)
Check whether the user has permission to use given tenant.
-
-
-
Method Detail
-
find
TenantConfig find(String tenantId)
FindTenantConfig
for the given tenant identifier.- Parameters:
tenantId
- the tenant identifier- Returns:
- an instance of
TenantConfig
-
findAll
List<TenantConfig> findAll(String host)
Find allTenantConfig
for the given hostname.- Parameters:
host
- the hostname- Returns:
- list of all
TenantConfig
matching the given hostname
-
hasAccess
boolean hasAccess(User user, TenantConfig config)
Check whether the user has permission to use given tenant.- Parameters:
user
- the user to checkconfig
- the tenant configuration to check- Returns:
- true if user can user this tenant false otherwise
-
-