Class ConfigurationFilesManager

java.lang.Object
org.bonitasoft.engine.authorization.properties.ConfigurationFilesManager

@Component public class ConfigurationFilesManager extends Object
Author:
Baptiste Mesta, Emmanuel Duchastenier, Anthony Birembaut
  • Constructor Details

    • ConfigurationFilesManager

      public ConfigurationFilesManager()
  • Method Details

    • getAlsoCustomAndInternalPropertiesFromFilename

      protected Properties getAlsoCustomAndInternalPropertiesFromFilename(String propertiesFileName, boolean setKeysToLowerCase)
    • propertiesKeysToLowerCaseIfNeeded

      protected Properties propertiesKeysToLowerCaseIfNeeded(Properties properties, boolean setKeysToLowerCase)
    • getTenantProperties

      public Properties getTenantProperties(String propertiesFileName)
    • getTenantProperties

      public Properties getTenantProperties(String propertiesFileName, boolean setKeysToLowerCase)
    • getProperties

      public static Properties getProperties(byte[] content)
      Parses the content as a Properties object. If content is null, return empty properties.
    • removeProperty

      public void removeProperty(String propertiesFilename, String propertyName) throws IOException
      Throws:
      IOException
    • getInternalPropertiesFilename

      public static String getInternalPropertiesFilename(String propertiesFilename)
    • getCustomPropertiesFilename

      public static String getCustomPropertiesFilename(String propertiesFilename)
    • update

      protected void update(String propertiesFilename, Properties properties) throws IOException
      Throws:
      IOException
    • getConfigurationFilesUtils

      protected BonitaHomeServer getConfigurationFilesUtils()
    • getTenantPortalConfiguration

      protected Properties getTenantPortalConfiguration(String propertiesFilename)
    • getTenantConfigurations

      protected Map<String,Properties> getTenantConfigurations() throws IOException
      Throws:
      IOException
    • setProperty

      public void setProperty(String propertiesFilename, String propertyName, String propertyValue) throws IOException
      Throws:
      IOException