Class PathBasedSystemSettings

  • All Implemented Interfaces:
    Serializable, org.pentaho.platform.api.engine.ILogger, org.pentaho.platform.api.engine.ISystemSettings

    public class PathBasedSystemSettings
    extends SystemSettings
    Behavior is identical to SystemSettings except that the settings for PentahoSystem can live in an arbitrary location in the file system (i.e. the file does not have to exist in the /system). The location of the file used to initialize PentahoSystem is specified by the System property whose key is SYSTEM_CFG_PATH_KEY. If this key does not exist in the System properties, then this class falls back on the behavior of SystemSettings (i.e. it gets the system settings from /system/pentaho.xml).
    Steven Barkdull
    See Also:
    Serialized Form
    • Field Detail


        public static final String SYSTEM_CFG_PATH_KEY
        key into containing the path to the file containing settings information for PentahoSystem.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PathBasedSystemSettings

        public PathBasedSystemSettings()
    • Method Detail

      • getSystemSetting

        public String getSystemSetting​(String settingName,
                                       String defaultValue)
        Specified by:
        getSystemSetting in interface org.pentaho.platform.api.engine.ISystemSettings
        getSystemSetting in class SystemSettings
      • getSystemSettings

        public List getSystemSettings​(String settingName)
        Specified by:
        getSystemSettings in interface org.pentaho.platform.api.engine.ISystemSettings
        getSystemSettings in class SystemSettings
      • getAbsolutePath

        protected String getAbsolutePath​(String path)
        Description copied from class: SystemSettings
        Create a String containing the complete path to the system folder in the repository, and append the parameter path to it.
        getAbsolutePath in class SystemSettings
        path - String containing the path of a file relative to the system folder in the repository
        String containing the path
      • getSystemCfgSourceName

        public String getSystemCfgSourceName()
        Specified by:
        getSystemCfgSourceName in interface org.pentaho.platform.api.engine.ISystemSettings
        getSystemCfgSourceName in class SystemSettings