public class ConfigurationImpl extends Object implements at.gv.egiz.pdfas.common.settings.ISettings, Configuration
Modifier and Type | Field and Description |
---|---|
protected Properties |
overwrittenProperties |
protected at.gv.egiz.pdfas.common.settings.Settings |
settings |
Constructor and Description |
---|
ConfigurationImpl(at.gv.egiz.pdfas.common.settings.Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
cloneProfile(String originalPrefix,
String clonedPrefix)
Clone configuration values at runtime only
All configuration values with originalPrefix are copied and
inserted as clonedPrefix
Example usage might be the generation of dynamic signature profiles:
cloneProfile(PdfAsConfigurationConstants.SIG_OBJECT_PREFIX + "SIGNATURBLOCK_DE",
PdfAsConfigurationConstants.SIG_OBJECT_PREFIX + "MY_DYNAMIC_PROFILE");
|
Vector<String> |
getFirstLevelKeys(String prefix) |
String |
getValue(String key)
Gets a specific Value
|
Map<String,String> |
getValuesPrefix(String prefix) |
String |
getWorkingDirectory() |
boolean |
hasPrefix(String prefix) |
boolean |
hasValue(String key)
Is the configuration key set
|
void |
removeProfile(String configurationPrefix)
Removes all dynamically configured values with a given prefix.
|
void |
setValue(String key,
String value)
Sets or overrides a configuration value
|
protected Properties overwrittenProperties
protected at.gv.egiz.pdfas.common.settings.Settings settings
public ConfigurationImpl(at.gv.egiz.pdfas.common.settings.Settings settings)
public void setValue(String key, String value)
Configuration
setValue
in interface Configuration
key
- The configuration keyvalue
- The configuration valuepublic String getValue(String key)
Configuration
getValue
in interface at.gv.egiz.pdfas.common.settings.ISettings
getValue
in interface Configuration
key
- The configuration keypublic boolean hasValue(String key)
Configuration
hasValue
in interface at.gv.egiz.pdfas.common.settings.ISettings
hasValue
in interface Configuration
key
- The configuration keypublic Map<String,String> getValuesPrefix(String prefix)
getValuesPrefix
in interface at.gv.egiz.pdfas.common.settings.ISettings
public Vector<String> getFirstLevelKeys(String prefix)
getFirstLevelKeys
in interface at.gv.egiz.pdfas.common.settings.ISettings
public boolean hasPrefix(String prefix)
hasPrefix
in interface at.gv.egiz.pdfas.common.settings.ISettings
public String getWorkingDirectory()
getWorkingDirectory
in interface at.gv.egiz.pdfas.common.settings.ISettings
public void cloneProfile(String originalPrefix, String clonedPrefix)
Configuration
cloneProfile
in interface Configuration
originalPrefix
- The original configuration key prefixclonedPrefix
- The cloned configuration key prefixpublic void removeProfile(String configurationPrefix)
Configuration
removeProfile
in interface Configuration
configurationPrefix
- The configuration key prefix