Class ConfigurationFilesManager
java.lang.Object
org.bonitasoft.engine.authorization.properties.ConfigurationFilesManager
- Author:
- Baptiste Mesta, Emmanuel Duchastenier, Anthony Birembaut
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesgetAlsoCustomAndInternalPropertiesFromFilename(String propertiesFileName, boolean setKeysToLowerCase) protected BonitaHomeServerstatic StringgetCustomPropertiesFilename(String propertiesFilename) static StringgetInternalPropertiesFilename(String propertiesFilename) static PropertiesgetProperties(byte[] content) Parses the content as a Properties object.protected Map<String,Properties> protected PropertiesgetTenantPortalConfiguration(String propertiesFilename) getTenantProperties(String propertiesFileName) getTenantProperties(String propertiesFileName, boolean setKeysToLowerCase) protected PropertiespropertiesKeysToLowerCaseIfNeeded(Properties properties, boolean setKeysToLowerCase) voidremoveProperty(String propertiesFilename, String propertyName) voidsetProperty(String propertiesFilename, String propertyName, String propertyValue) protected voidupdate(String propertiesFilename, Properties properties)
-
Constructor Details
-
ConfigurationFilesManager
public ConfigurationFilesManager()
-
-
Method Details
-
getAlsoCustomAndInternalPropertiesFromFilename
protected Properties getAlsoCustomAndInternalPropertiesFromFilename(String propertiesFileName, boolean setKeysToLowerCase) -
propertiesKeysToLowerCaseIfNeeded
protected Properties propertiesKeysToLowerCaseIfNeeded(Properties properties, boolean setKeysToLowerCase) -
getTenantProperties
-
getTenantProperties
-
getProperties
Parses the content as a Properties object. If content is null, return empty properties. -
removeProperty
- Throws:
IOException
-
getInternalPropertiesFilename
-
getCustomPropertiesFilename
-
update
- Throws:
IOException
-
getConfigurationFilesUtils
-
getTenantPortalConfiguration
-
getTenantConfigurations
- Throws:
IOException
-
setProperty
public void setProperty(String propertiesFilename, String propertyName, String propertyValue) throws IOException - Throws:
IOException
-