public interface ConfigService
Config
management.Modifier and Type | Method and Description |
---|---|
Config |
getConfig(String component)
Get the
Config for the given component. |
List<Config> |
getConfigs()
Get
Config s for all components. |
Config |
resetAll(String component,
Authentication auth)
Reset all configuration items for the given component back to their
defaults.
|
Config |
resetConfigEntries(String component,
List<String> keys,
Authentication auth)
Reset to default the values for the specified keys of the given
component.
|
Config |
updateConfigEntries(String component,
Map<String,String> pairs,
Authentication auth)
Update the Config of a given component with the key/value
pairs supplied. |
Config getConfig(String component)
Config
for the given component.component
- the name of the component whose Config will be
retrieved.List<Config> getConfigs()
Config
s for all components.Config updateConfigEntries(String component, Map<String,String> pairs, Authentication auth)
pairs
supplied. The map of key/value pairs must be
non-null and contain one or more entries with non-null keys that are
valid keys for the given component.component
- the name of the component whose configuration will be
updatedpairs
- a Map
of key/value pairs to be updatedauth
- the authentication record for the user that invoked this
methodConfig resetConfigEntries(String component, List<String> keys, Authentication auth)
component
- the name of the component whose configurations will be
resetkeys
- a list of valid keys whose values are to be reset to
defaultauth
- the authentication record for the user that invoked this
methodConfig resetAll(String component, Authentication auth)
component
- the name of the component whose configuration will be
resetauth
- the authentication record for the user that invoked this
methodCopyright © 2016. All Rights Reserved.