Package de.hybris.platform.hac.data.dto
Class TenantData
java.lang.Object
de.hybris.platform.hac.data.dto.TenantData
Keeps the tenant data.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCtx()getDbUrl()booleanbooleanbooleanbooleanisMaster()voidsetActivated(boolean activated) voidsetCreated(boolean created) voidsetCreationMessage(String creationMessage) voidvoidsetCtxEnabled(String ctxEnabled) voidsetDbDriver(String dbDriver) voidsetDbPassword(String dbPassword) voidvoidvoidsetExtensions(List<String> extensions) voidsetInitialized(boolean initialized) voidsetJndiPool(String jndiPool) voidvoidsetMaster(boolean master) voidsetTablePrefix(String tablePrefix) voidsetTenantID(String tenantID) voidsetTimezone(String timezone)
-
Field Details
-
TABLE_PREFIX_PLACEHOLDER
- See Also:
-
DB_PREFIX_MAX_LENGTH
public static final int DB_PREFIX_MAX_LENGTH- See Also:
-
TENANT_ID_MAX_LENGTH
public static final int TENANT_ID_MAX_LENGTH- See Also:
-
-
Constructor Details
-
TenantData
public TenantData()
-
-
Method Details
-
isMaster
public boolean isMaster()- Returns:
- true if it is the master tenant, slaves will return false here
-
setMaster
public void setMaster(boolean master) -
getExtensions
- Returns:
- a list of the extension names for this tenant
-
setExtensions
-
getDbUrl
- Returns:
- the url to access the database
-
setDbUrl
-
getDbDriver
- Returns:
- the name of the used database driver.
-
setDbDriver
-
getDbUser
- Returns:
- the name of the database user which uses the platform for accessing the database
-
setDbUser
-
getDbPassword
- Returns:
- the password for
getDbUser()
-
setDbPassword
-
getTenantID
- Returns:
- the tenant id
-
setTenantID
-
getTimezone
-
setTimezone
-
getJndiPool
-
setJndiPool
-
getTablePrefix
- Returns:
- the table prefix for the current tenant. The master tenant has no prefix
-
setTablePrefix
-
getLocale
-
setLocale
-
isInitialized
public boolean isInitialized()- Returns:
- true if the current tenant is initialized.
-
setInitialized
public void setInitialized(boolean initialized) -
isActivated
public boolean isActivated() -
setActivated
public void setActivated(boolean activated) -
getCreationMessage
-
setCreationMessage
-
isCreated
public boolean isCreated() -
setCreated
public void setCreated(boolean created) -
setCtx
-
getCtx
-
setCtxEnabled
-
getCtxEnabled
-