OpenMRSConfigService¶
-
public interface
OpenMRSConfigService
¶ Service responsible for managing configurations for the OpenMRS servers.
Methods¶
addConfig¶
deleteConfig¶
-
void
deleteConfig
(String name)¶ Deletes configuration with the given name. If configuration with the name does not exist a
ConfigurationNotFoundException
exception will be thrown.Parameters: - name – the name of the configuration to be deleted
getConfigByName¶
getConfigs¶
getDefaultConfig¶
markConfigAsDefault¶
-
void
markConfigAsDefault
(String name)¶ Marks configuration with the given name as a default one. If configuration with the name does not exist a
ConfigurationNotFoundException
exception will be thrown.Parameters: - name – the name of the configuration to be set as default
saveAllConfigs¶
updateConfig¶
-
void
updateConfig
(Config config)¶ Updates configuration with the same name with the passed data. If configuration with the name does not exist a
ConfigurationNotFoundException
exception will be thrown.Parameters: - config – the configuration to serve as an update source