Package org.bonitasoft.engine.home
Class BonitaHomeServer
java.lang.Object
org.bonitasoft.engine.home.BonitaHomeServer
Retrieve configuration files from database and from classpath
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteTenant(long tenantId) longstatic BonitaHomeServergetLocalTemporaryFolder(String artifactType, long artifactId) List<org.bonitasoft.platform.configuration.model.BonitaConfiguration>Properties inheritance is defined like that: platform properties in database overrides platform properties in classpathgetPlatformTempFile(String fileName) getPropertiesFromClassPath(String... files) getSecurityScriptsFolder(long tenantId) get the name of the implementation ofServerAPIbased on the current configuration ofbonita-platform.propertiesList<org.bonitasoft.platform.configuration.model.BonitaConfiguration>getTenantConfiguration(long tenantId) byte[]getTenantPortalConfiguration(long tenantId, String file) getTenantPortalConfigurations(long tenantId) getTenantProperties(long tenantId) Properties inheritance is defined like that: tenant properties in database overrides tenant properties in classpath tenant properties in classpath overrides platform properties in database platform properties in database overrides platform properties in classpathvoidmodifyTechnicalUser(long tenantId, String userName, String password) voidupdateTenantPortalConfigurationFile(long tenantId, String file, byte[] content)
-
Field Details
-
INSTANCE
-
-
Method Details
-
getInstance
-
getDefaultTenantId
public long getDefaultTenantId() -
getPlatformProperties
Properties inheritance is defined like that:- platform properties in database overrides platform properties in classpath
- Throws:
IOException
-
getTenantProperties
Properties inheritance is defined like that:- tenant properties in database overrides tenant properties in classpath
- tenant properties in classpath overrides platform properties in database
- platform properties in database overrides platform properties in classpath
- Throws:
IOException
-
getPropertiesFromClassPath
- Throws:
IOException
-
getPlatformConfiguration
public List<org.bonitasoft.platform.configuration.model.BonitaConfiguration> getPlatformConfiguration() -
getTenantConfiguration
public List<org.bonitasoft.platform.configuration.model.BonitaConfiguration> getTenantConfiguration(long tenantId) -
getTenantStorage
-
getServerAPIImplementation
get the name of the implementation ofServerAPIbased on the current configuration ofbonita-platform.properties- Returns:
- the name of the class implementing
ServerAPI - Throws:
IllegalStateException- if the name of the implementation cannot be retrieved
-
getPlatformTempFile
- Throws:
IOException
-
getLicensesFolder
- Throws:
IOException
-
getLocalTemporaryFolder
- Throws:
IOException
-
deleteTenant
public void deleteTenant(long tenantId) throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, IOException - Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetExceptionIOException
-
modifyTechnicalUser
- Throws:
IOException
-
getSecurityScriptsFolder
public File getSecurityScriptsFolder(long tenantId) throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, IOException - Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetExceptionIOException
-
getClientPlatformConfigurations
-
getTenantPortalConfigurations
-
getTenantPortalConfiguration
-
updateTenantPortalConfigurationFile
public void updateTenantPortalConfigurationFile(long tenantId, String file, byte[] content) throws org.bonitasoft.engine.exception.UpdateException - Throws:
org.bonitasoft.engine.exception.UpdateException
-