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 TypeMethodDescriptionstatic BonitaHomeServergetLocalTemporaryFolder(String artifactType) getLocalTemporaryFolder(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) get the name of the implementation ofServerAPIbased on the current configuration ofbonita-platform.propertiesList<org.bonitasoft.platform.configuration.model.BonitaConfiguration>byte[]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 classpathvoidupdateTenantPortalConfigurationFile(String file, byte[] content)
-
Field Details
-
INSTANCE
-
-
Method Details
-
getInstance
-
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() -
getProfileStorage
-
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
-
getLocalTemporaryFolder
- Throws:
IOException
-
getLocalTemporaryFolder
- Throws:
IOException
-
getSecurityScriptsFolder
public File getSecurityScriptsFolder() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, IOException- Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetExceptionIOException
-
getClientPlatformConfigurations
-
getTenantPortalConfigurations
-
getTenantPortalConfiguration
-
updateTenantPortalConfigurationFile
public void updateTenantPortalConfigurationFile(String file, byte[] content) throws org.bonitasoft.engine.exception.UpdateException - Throws:
org.bonitasoft.engine.exception.UpdateException
-