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 SystemConfigurationBuilder
nodeName
- the name of the node that the configuration will belong topublic SystemConfigurationBuilder value(com.fasterxml.jackson.databind.node.ObjectNode value)
value
in interface SystemConfigurationBuilder
value
- the value of the configurationpublic SystemConfiguration save()
SystemConfigurationBuilder
save
in interface SystemConfigurationBuilder
public SystemConfiguration execute(CommandContext commandContext)
execute
in interface Command<SystemConfiguration>
protected ConfigurationPropertyEntity updateConfiguration(CommandContext commandContext)
protected ConfigurationProperty createConfiguration(CommandContext commandContext)