Package org.pentaho.platform.api.engine
Interface ISystemSettings
public interface ISystemSettings
The SystemSettings manages the platform's overall configuration settings. These settings by default can be found
in the system tree in an xml file named "pentaho.xml."
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the source of the system configurations.getSystemSetting
(String settingName, String defaultValue) Gets a system setting from the system configuration filegetSystemSetting
(String path, String settingName, String defaultValue) Gets a system setting from the system pathgetSystemSettings
(String settingSection) Gets a section from the system system configuration filegetSystemSettings
(String path, String settingSection) Gets a section from the specified settings documentorg.dom4j.Document
getSystemSettingsDocument
(String actionPath) Returns a Document object containing the settings document within the path specified by actionPath.Gets a properties file from the solution.void
The SystemSettings object caches each settings document once it's read in.
-
Method Details
-
getSystemCfgSourceName
String getSystemCfgSourceName()Gets the name of the source of the system configurations. For system configurations that are stored in a file, it should return the filename. Other implementations should return a name that is relevant to the implementation (possibly a URL, or a database sql query, etc.) Often this will be pentaho.xml- Returns:
- String containing a name that identifies the source of the system configuration
-
getSystemSetting
Gets a system setting from the system path- Parameters:
path
- relative to the "system" directory, go to this documentsettingName
- the setting name to getdefaultValue
- the value to use if the setting isn't specified in the setting document- Returns:
- the setting requested, or the default value if not found
-
getSystemSetting
Gets a system setting from the system configuration file- Parameters:
settingName
- the setting name to getdefaultValue
- the value to use if the setting isn't specified in the setting document- Returns:
- the setting requested, or the default value if not found
-
getSystemSettings
Gets a section from the specified settings document- Parameters:
path
- relative to the system directory, go to this documentsettingSection
- the section is the document to retrieve- Returns:
- the list of settings in the specified section of the document
-
getSystemSettings
Gets a section from the system system configuration file- Parameters:
settingSection
- the section to retrieve- Returns:
- the list of elements in the section of the document.
-
resetSettingsCache
void resetSettingsCache()The SystemSettings object caches each settings document once it's read in. If the system gets a refresh event, this should be called to make sure that the system settings get refreshed. -
getSystemSettingsDocument
Returns a Document object containing the settings document within the path specified by actionPath.- Parameters:
actionPath
- The XML document relative to the solution that contains the settings desired- Returns:
- Document Parsed XML document.
-
getSystemSettingsProperties
Gets a properties file from the solution.- Parameters:
path
- Relative path to the properties file within the solution- Returns:
- Properties object containing the properties.
-