Class SystemConfigurationBuilderImpl
- java.lang.Object
-
- com.flowable.platform.engine.impl.configuration.system.SystemConfigurationBuilderImpl
-
- All Implemented Interfaces:
SystemConfigurationBuilder
,Command<SystemConfiguration>
public class SystemConfigurationBuilderImpl extends Object implements SystemConfigurationBuilder, Command<SystemConfiguration>
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected String
configurationId
protected SystemConfigurationConfigurer
configurer
protected String
nodeName
protected com.fasterxml.jackson.databind.node.ObjectNode
value
-
Constructor Summary
Constructors Constructor Description SystemConfigurationBuilderImpl(CommandExecutor commandExecutor, SystemConfigurationConfigurer configurer, String configurationId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
commandExecutor
protected final CommandExecutor commandExecutor
-
configurer
protected final SystemConfigurationConfigurer configurer
-
configurationId
protected final String configurationId
-
nodeName
protected String nodeName
-
value
protected com.fasterxml.jackson.databind.node.ObjectNode value
-
-
Constructor Detail
-
SystemConfigurationBuilderImpl
public SystemConfigurationBuilderImpl(CommandExecutor commandExecutor, SystemConfigurationConfigurer configurer, String configurationId)
-
-
Method Detail
-
nodeName
public SystemConfigurationBuilder nodeName(String nodeName)
- Specified by:
nodeName
in interfaceSystemConfigurationBuilder
- Parameters:
nodeName
- the name of the node that the configuration will belong to
-
value
public SystemConfigurationBuilder value(com.fasterxml.jackson.databind.node.ObjectNode value)
- Specified by:
value
in interfaceSystemConfigurationBuilder
- Parameters:
value
- the value of the configuration
-
save
public SystemConfiguration save()
Description copied from interface:SystemConfigurationBuilder
Save the configuration. It would either create a new one (if none exists for the given node) or update an existing one.- Specified by:
save
in interfaceSystemConfigurationBuilder
-
execute
public SystemConfiguration execute(CommandContext commandContext)
- Specified by:
execute
in interfaceCommand<SystemConfiguration>
-
updateConfiguration
protected ConfigurationPropertyEntity updateConfiguration(CommandContext commandContext)
-
createConfiguration
protected ConfigurationProperty createConfiguration(CommandContext commandContext)
-
-