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 CommandExecutorcommandExecutorprotected StringconfigurationIdprotected SystemConfigurationConfigurerconfigurerprotected StringnodeNameprotected com.fasterxml.jackson.databind.node.ObjectNodevalue
-
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 ConfigurationPropertycreateConfiguration(CommandContext commandContext)SystemConfigurationexecute(CommandContext commandContext)SystemConfigurationBuildernodeName(String nodeName)SystemConfigurationsave()Save the configuration.protected ConfigurationPropertyEntityupdateConfiguration(CommandContext commandContext)SystemConfigurationBuildervalue(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:
nodeNamein 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:
valuein interfaceSystemConfigurationBuilder- Parameters:
value- the value of the configuration
-
save
public SystemConfiguration save()
Description copied from interface:SystemConfigurationBuilderSave the configuration. It would either create a new one (if none exists for the given node) or update an existing one.- Specified by:
savein interfaceSystemConfigurationBuilder
-
execute
public SystemConfiguration execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<SystemConfiguration>
-
updateConfiguration
protected ConfigurationPropertyEntity updateConfiguration(CommandContext commandContext)
-
createConfiguration
protected ConfigurationProperty createConfiguration(CommandContext commandContext)
-
-