public interface SettingsService
| Modifier and Type | Method and Description |
|---|---|
void |
changeSetting(SettingValue<?> newValue)
Changes a setting.
|
void |
configure(java.lang.Object object)
Configure
o with the required settings. |
void |
configureOnce(java.lang.Object object)
Configure
o with the required settings. |
void |
deleteAll()
Deletes all settings and users.
|
void |
deleteSetting(SettingDefinition<?> setting)
Deletes the setting defined by
setting. |
SettingDefinition<?> |
getDefinitionByKey(java.lang.String key)
Get the definition that is defined with the specified key.
|
java.util.Set<java.lang.String> |
getKeys() |
<T> SettingValue<T> |
getSetting(SettingDefinition<T> key)
Gets the value of the setting defined by
key. |
<T> SettingValue<T> |
getSetting(java.lang.String key)
Gets the value of the setting defined by
key. |
java.util.Set<SettingDefinition<?>> |
getSettingDefinitions()
Gets all
SettingDefinitions known by this class. |
SettingValueFactory |
getSettingFactory() |
java.util.Map<SettingDefinition<?>,SettingValue<?>> |
getSettings()
Gets all values for all definitions.
|
void |
reconfigure()
Gets all values for all definitions and udpates (changes or configures) all configured objets.
|
void changeSetting(SettingValue<?> newValue) throws ConfigurationError
newValue - the new value of the settingConfigurationError - if there is a problem changing the setting.void configure(java.lang.Object object)
throws ConfigurationError
o with the required settings. All changes to a setting required by the object will be applied.object - the object to configureConfigurationError - if there is a problem configuring the objectConfigurable,
Settingvoid configureOnce(java.lang.Object object)
throws ConfigurationError
o with the required settings. Future changes to settings will not be propagated to the object.object - the object to configureConfigurationError - if there is a problem configuring the objectconfigure(java.lang.Object)void deleteAll()
void deleteSetting(SettingDefinition<?> setting) throws ConfigurationError
setting.setting - the definitionConfigurationError - if there is a problem deleting the settingSettingDefinition<?> getDefinitionByKey(java.lang.String key)
key - the keynull if there is no definition for the keyjava.util.Set<java.lang.String> getKeys()
<T> SettingValue<T> getSetting(SettingDefinition<T> key)
key.T - the type of the setting and valuekey - the definition of the setting<T> SettingValue<T> getSetting(java.lang.String key)
key.T - the type of the setting and valuekey - the id of the settingjava.util.Set<SettingDefinition<?>> getSettingDefinitions()
SettingDefinitions known by this class.SettingValueFactory getSettingFactory()
SettingValueFactory to produce valuesjava.util.Map<SettingDefinition<?>,SettingValue<?>> getSettings()
null is added to the map.void reconfigure()
Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.