Package com.axelor.db.tenants
Interface TenantConfig
-
- All Known Implementing Classes:
TenantConfigImpl
public interface TenantConfig
The 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 String
DEFAULT_TENANT_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Boolean
getActive()
Whether the tenant is active.String
getJdbcDriver()
The JDBC driver for the tenant.String
getJdbcPassword()
The JDBC password for the tenant.String
getJdbcUrl()
The JDBC connection url for the tenant.String
getJdbcUser()
The JDBC user for the tenant.String
getJndiDataSource()
JNDI data source name.String
getTenantHosts()
Comma separated list of hostnames for which this tenant is valid.String
getTenantId()
The unique tenant identifier.String
getTenantName()
The display name.String
getTenantRoles()
Comma separated list of roles allowed to use this tenant.Boolean
getVisible()
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.
-
-