Configuration modifications
Last modified by Vincent Massol on 2021/04/06
There's now a setProperties() API to modify ConfigurationSource properties. Scripting example:
{{groovy}}
import org.xwiki.configuration.*
def cs = services.component.getInstance(ConfigurationSource.class, 'mailsend')
cs.setProperties(['host' : 'localhost'])
println cs.getProperty('host')
{{/groovy}}
import org.xwiki.configuration.*
def cs = services.component.getInstance(ConfigurationSource.class, 'mailsend')
cs.setProperties(['host' : 'localhost'])
println cs.getProperty('host')
{{/groovy}}