Class BonitaHomeServer

java.lang.Object
org.bonitasoft.engine.home.BonitaHomeServer

public class BonitaHomeServer extends Object
Retrieve configuration files from database and from classpath
  • Field Details

  • Method Details

    • getInstance

      public static BonitaHomeServer getInstance()
    • getPlatformProperties

      public Properties getPlatformProperties() throws IOException
      Properties inheritance is defined like that:
      1. platform properties in database overrides platform properties in classpath
      Throws:
      IOException
    • getTenantProperties

      public Properties getTenantProperties() throws IOException
      Properties inheritance is defined like that:
      1. tenant properties in database overrides tenant properties in classpath
      2. tenant properties in classpath overrides platform properties in database
      3. platform properties in database overrides platform properties in classpath
      Throws:
      IOException
    • getPropertiesFromClassPath

      public Properties getPropertiesFromClassPath(String... files) throws IOException
      Throws:
      IOException
    • getPlatformConfiguration

      public List<org.bonitasoft.platform.configuration.model.BonitaConfiguration> getPlatformConfiguration()
    • getTenantConfiguration

      public List<org.bonitasoft.platform.configuration.model.BonitaConfiguration> getTenantConfiguration()
    • getProfileStorage

      public ProfileStorage getProfileStorage()
    • getServerAPIImplementation

      public String getServerAPIImplementation() throws IllegalStateException
      get the name of the implementation of ServerAPI based on the current configuration of bonita-platform.properties
      Returns:
      the name of the class implementing ServerAPI
      Throws:
      IllegalStateException - if the name of the implementation cannot be retrieved
    • getPlatformTempFile

      public File getPlatformTempFile(String fileName) throws IOException
      Throws:
      IOException
    • getLocalTemporaryFolder

      public URI getLocalTemporaryFolder(String artifactType) throws IOException
      Throws:
      IOException
    • getLocalTemporaryFolder

      public URI getLocalTemporaryFolder(String artifactType, long artifactId) throws IOException
      Throws:
      IOException
    • getSecurityScriptsFolder

      public File getSecurityScriptsFolder() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, IOException
      Throws:
      org.bonitasoft.engine.exception.BonitaHomeNotSetException
      IOException
    • getClientPlatformConfigurations

      public Map<String,byte[]> getClientPlatformConfigurations()
    • getTenantPortalConfigurations

      public Map<String,byte[]> getTenantPortalConfigurations()
    • getTenantPortalConfiguration

      public byte[] getTenantPortalConfiguration(String file)
    • updateTenantPortalConfigurationFile

      public void updateTenantPortalConfigurationFile(String file, byte[] content) throws org.bonitasoft.engine.exception.UpdateException
      Throws:
      org.bonitasoft.engine.exception.UpdateException