public class SystemSettings extends PentahoBase implements org.pentaho.platform.api.engine.ISystemSettings
Modifier and Type | Field and Description |
---|---|
static String |
PENTAHOSETTINGSFILENAME
This constant is for the overall system settings file name.
|
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
Constructor and Description |
---|
SystemSettings() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAbsolutePath(String path)
Create a String containing the complete path to the system folder in the repository, and append the parameter
path to it. |
org.apache.commons.logging.Log |
getLogger() |
org.dom4j.Document |
getSettingsDocumentFromFile(File f) |
String |
getSystemCfgSourceName() |
String |
getSystemSetting(String settingName,
String defaultValue) |
String |
getSystemSetting(String path,
String settingName,
String defaultValue) |
List |
getSystemSettings(String settingName) |
List |
getSystemSettings(String path,
String settingName) |
org.dom4j.Document |
getSystemSettingsDocument(String actionPath)
Get the DOM document initialized by the file specified in the
actionPath parameter. |
Properties |
getSystemSettingsProperties(String path) |
void |
resetSettingsCache() |
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
public static final String PENTAHOSETTINGSFILENAME
public String getSystemSetting(String path, String settingName, String defaultValue)
getSystemSetting
in interface org.pentaho.platform.api.engine.ISystemSettings
public String getSystemSetting(String settingName, String defaultValue)
getSystemSetting
in interface org.pentaho.platform.api.engine.ISystemSettings
public List getSystemSettings(String path, String settingName)
getSystemSettings
in interface org.pentaho.platform.api.engine.ISystemSettings
public List getSystemSettings(String settingName)
getSystemSettings
in interface org.pentaho.platform.api.engine.ISystemSettings
public org.dom4j.Document getSettingsDocumentFromFile(File f) throws IOException, org.dom4j.DocumentException
IOException
org.dom4j.DocumentException
public org.dom4j.Document getSystemSettingsDocument(String actionPath)
actionPath
parameter. If this is
the first time the document associated with actionPath
has been requested, cache the DOM
document. If this is not the first time the document has been requested, return the document from the cache.getSystemSettingsDocument
in interface org.pentaho.platform.api.engine.ISystemSettings
protected String getAbsolutePath(String path)
path
to it.path
- String containing the path of a file relative to the system folder in the repositorypublic org.apache.commons.logging.Log getLogger()
getLogger
in class PentahoBase
public void resetSettingsCache()
resetSettingsCache
in interface org.pentaho.platform.api.engine.ISystemSettings
public Properties getSystemSettingsProperties(String path)
getSystemSettingsProperties
in interface org.pentaho.platform.api.engine.ISystemSettings
public String getSystemCfgSourceName()
getSystemCfgSourceName
in interface org.pentaho.platform.api.engine.ISystemSettings
Copyright © 2019 Hitachi Vantara. All rights reserved.