|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.engine.core.system.SimpleSystemSettings
public class SimpleSystemSettings
Constructor Summary | |
---|---|
SimpleSystemSettings()
|
Method Summary | |
---|---|
void |
addSetting(String name,
String value)
|
String |
getSystemCfgSourceName()
Gets the name of the source of the system configurations. |
String |
getSystemSetting(String settingName,
String defaultValue)
Gets a system setting from the system configuration file |
String |
getSystemSetting(String path,
String settingName,
String defaultValue)
Gets a system setting from the system path |
List |
getSystemSettings(String settingSection)
Gets a section from the system system configuration file |
List |
getSystemSettings(String path,
String settingSection)
Gets a section from the specified settings document |
org.dom4j.Document |
getSystemSettingsDocument(String actionPath)
Returns a Document object containing the settings document within the path specified by actionPath. |
Properties |
getSystemSettingsProperties(String path)
Gets a properties file from the solution. |
void |
resetSettingsCache()
The SystemSettings object caches each settings document once it's read in. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleSystemSettings()
Method Detail |
---|
public void addSetting(String name, String value)
public String getSystemCfgSourceName()
ISystemSettings
getSystemCfgSourceName
in interface ISystemSettings
public String getSystemSetting(String path, String settingName, String defaultValue)
ISystemSettings
getSystemSetting
in interface ISystemSettings
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
public String getSystemSetting(String settingName, String defaultValue)
ISystemSettings
getSystemSetting
in interface ISystemSettings
settingName
- the setting name to getdefaultValue
- the value to use if the setting isn't specified in the setting
document
public List getSystemSettings(String path, String settingSection)
ISystemSettings
getSystemSettings
in interface ISystemSettings
path
- relative to the system directory, go to this documentsettingSection
- the section is the document to retrieve
public List getSystemSettings(String settingSection)
ISystemSettings
getSystemSettings
in interface ISystemSettings
settingSection
- the section to retrieve
public org.dom4j.Document getSystemSettingsDocument(String actionPath)
ISystemSettings
getSystemSettingsDocument
in interface ISystemSettings
actionPath
- The XML document relative to the solution that contains the
settings desired
public Properties getSystemSettingsProperties(String path)
ISystemSettings
getSystemSettingsProperties
in interface ISystemSettings
path
- Relative path to the properties file within the solution
public void resetSettingsCache()
ISystemSettings
resetSettingsCache
in interface ISystemSettings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |