public interface ConfigService
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConfigService.ConfigType
Configuration types
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteConfig(Config config)
Delete the associated configuration
|
Map<String,ConfigService.ConfigType> |
getAllConfigurationTypes()
Get all configurations currently deployed
|
Config |
getConfig(String pid)
Get the config for the specified PID
If it does not exist yet, create a new config
|
Config |
getConfig(String factoryPid,
String identifier)
Get the settings for the specified factory PID and identifer
If it does not exist yet, create a new config
|
Collection<String> |
restoreConfigurationsFromJCR(Collection<ConfigService.ConfigType> types)
Restore configurations from JCR
|
void |
setAutoSaveToJCR(boolean autoSave)
Auto save configuration on change
|
Collection<String> |
storeAllConfigurationsToJCR()
Store configurations into JCR
|
void |
storeConfig(Config config)
Persist the changes on the config into the the Configuration Manager storage
|
Config getConfig(String pid) throws IOException
pid - The config PIDIOException - exceptionConfig getConfig(String factoryPid, String identifier) throws IOException
factoryPid - The factory PIDidentifier - The identifierIOException - exceptionvoid storeConfig(Config config) throws IOException
config - The config to storeIOException - exceptionvoid deleteConfig(Config config) throws IOException
config - The config to deleteIOException - exceptionMap<String,ConfigService.ConfigType> getAllConfigurationTypes()
Collection<String> storeAllConfigurationsToJCR()
Collection<String> restoreConfigurationsFromJCR(Collection<ConfigService.ConfigType> types)
types - The types to store, null for all configurationsvoid setAutoSaveToJCR(boolean autoSave)
Copyright © 2004–2021 Jahia Solutions Group SA. All rights reserved.