public class SystemConfigurationBuilderImpl extends Object implements SystemConfigurationBuilder, Command<SystemConfiguration>
| Modifier and Type | Field and Description |
|---|---|
protected CommandExecutor |
commandExecutor |
protected String |
configurationId |
protected SystemConfigurationConfigurer |
configurer |
protected String |
nodeName |
protected com.fasterxml.jackson.databind.node.ObjectNode |
value |
| Constructor and Description |
|---|
SystemConfigurationBuilderImpl(CommandExecutor commandExecutor,
SystemConfigurationConfigurer configurer,
String configurationId) |
| Modifier and Type | Method and Description |
|---|---|
protected ConfigurationProperty |
createConfiguration(CommandContext commandContext) |
SystemConfiguration |
execute(CommandContext commandContext) |
SystemConfigurationBuilder |
nodeName(String nodeName) |
SystemConfiguration |
save()
Save the configuration.
|
protected ConfigurationPropertyEntity |
updateConfiguration(CommandContext commandContext) |
SystemConfigurationBuilder |
value(com.fasterxml.jackson.databind.node.ObjectNode value) |
protected final CommandExecutor commandExecutor
protected final SystemConfigurationConfigurer configurer
protected final String configurationId
protected String nodeName
protected com.fasterxml.jackson.databind.node.ObjectNode value
public SystemConfigurationBuilderImpl(CommandExecutor commandExecutor, SystemConfigurationConfigurer configurer, String configurationId)
public SystemConfigurationBuilder nodeName(String nodeName)
nodeName in interface SystemConfigurationBuildernodeName - the name of the node that the configuration will belong topublic SystemConfigurationBuilder value(com.fasterxml.jackson.databind.node.ObjectNode value)
value in interface SystemConfigurationBuildervalue - the value of the configurationpublic SystemConfiguration save()
SystemConfigurationBuildersave in interface SystemConfigurationBuilderpublic SystemConfiguration execute(CommandContext commandContext)
execute in interface Command<SystemConfiguration>protected ConfigurationPropertyEntity updateConfiguration(CommandContext commandContext)
protected ConfigurationProperty createConfiguration(CommandContext commandContext)