Package com.axelor.db.tenants
Interface TenantConfig
-
- All Known Implementing Classes:
TenantConfigImpl
public interface TenantConfigThe contract to provide tenant connection settings.The config should provide either JNDI data-source name or JDBC connection properties for the database connection.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_TENANT_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BooleangetActive()Whether the tenant is active.StringgetJdbcDriver()The JDBC driver for the tenant.StringgetJdbcPassword()The JDBC password for the tenant.StringgetJdbcUrl()The JDBC connection url for the tenant.StringgetJdbcUser()The JDBC user for the tenant.StringgetJndiDataSource()JNDI data source name.StringgetTenantHosts()Comma separated list of hostnames for which this tenant is valid.StringgetTenantId()The unique tenant identifier.StringgetTenantName()The display name.StringgetTenantRoles()Comma separated list of roles allowed to use this tenant.BooleangetVisible()Whether the tenant is visible in tenant selection box.
-
-
-
Field Detail
-
DEFAULT_TENANT_ID
static final String DEFAULT_TENANT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActive
Boolean getActive()
Whether the tenant is active.
-
getVisible
Boolean getVisible()
Whether the tenant is visible in tenant selection box.
-
getTenantId
String getTenantId()
The unique tenant identifier.
-
getTenantName
String getTenantName()
The display name.
-
getTenantHosts
String getTenantHosts()
Comma separated list of hostnames for which this tenant is valid.
-
getTenantRoles
String getTenantRoles()
Comma separated list of roles allowed to use this tenant.
-
getJndiDataSource
String getJndiDataSource()
JNDI data source name.
-
getJdbcDriver
String getJdbcDriver()
The JDBC driver for the tenant.
-
getJdbcUrl
String getJdbcUrl()
The JDBC connection url for the tenant.
-
getJdbcUser
String getJdbcUser()
The JDBC user for the tenant.
-
getJdbcPassword
String getJdbcPassword()
The JDBC password for the tenant.
-
-