public class Java14ConfigStorage extends Object implements org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStorage
Constructor and Description |
---|
Java14ConfigStorage(Preferences base)
Creates a new storage, which uses the given preferences node as base for all operations.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable(String configPath)
Tests, whether some configuration data exists for the given configuration.
|
org.pentaho.reporting.libraries.base.config.Configuration |
load(String configPath,
org.pentaho.reporting.libraries.base.config.Configuration defaults)
Loads the properties from the given path, specifying the given properties as default.
|
void |
store(String configPath,
org.pentaho.reporting.libraries.base.config.Configuration config)
Stores the given properties on the defined path.
|
public Java14ConfigStorage(Preferences base)
base
- the base node.public void store(String configPath, org.pentaho.reporting.libraries.base.config.Configuration config) throws org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStoreException
store
in interface org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStorage
configPath
- the path on where to store the properties.config
- the properties which should be stored.org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStoreException
- if an error occurred.public org.pentaho.reporting.libraries.base.config.Configuration load(String configPath, org.pentaho.reporting.libraries.base.config.Configuration defaults) throws org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStoreException
load
in interface org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStorage
configPath
- the configuration path from where to read the properties.defaults
- the property set that acts as fallback to provide default values.org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStoreException
- if an error occurred.public boolean isAvailable(String configPath)
isAvailable
in interface org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStorage
configPath
- the configuration path to the property storage.Copyright © 2017 Hitachi Vantara. All rights reserved.