Class DataTableFavoriteConfigurationBuilderImpl
java.lang.Object
com.flowable.platform.engine.impl.configuration.datatable.DataTableFavoriteConfigurationBuilderImpl
- All Implemented Interfaces:
DataTableFavoriteConfigurationBuilder
,Command<DataTableFavoriteConfiguration>
public class DataTableFavoriteConfigurationBuilderImpl
extends Object
implements DataTableFavoriteConfigurationBuilder, Command<DataTableFavoriteConfiguration>
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDataTableFavoriteConfigurationBuilderImpl
(CommandExecutor commandExecutor, String favoriteKey, String configurationId) -
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(com.fasterxml.jackson.databind.node.ObjectNode configuration) The configuration object.protected ConfigurationProperty
createConfiguration
(CommandContext commandContext) execute
(CommandContext commandContext) Whether the configuration should be marked as the default.The name of the configuration.The id of the user to which this configuration belongs to.save()
Save the configuration.The tenant if od the configurationWhether the configuration should be unmarked as the default.protected ConfigurationPropertyEntity
updateConfiguration
(CommandContext commandContext)
-
Field Details
-
commandExecutor
-
favoriteKey
-
configurationId
-
forUpdate
protected final boolean forUpdate -
name
-
tenantId
-
ownerUser
-
configuration
protected com.fasterxml.jackson.databind.node.ObjectNode configuration -
markAsDefault
protected boolean markAsDefault -
unmarkAsDefault
protected boolean unmarkAsDefault
-
-
Constructor Details
-
DataTableFavoriteConfigurationBuilderImpl
public DataTableFavoriteConfigurationBuilderImpl(CommandExecutor commandExecutor, String favoriteKey, String configurationId)
-
-
Method Details
-
tenantId
Description copied from interface:DataTableFavoriteConfigurationBuilder
The tenant if od the configuration- Specified by:
tenantId
in interfaceDataTableFavoriteConfigurationBuilder
- Parameters:
tenantId
- the tenant id
-
ownerUser
Description copied from interface:DataTableFavoriteConfigurationBuilder
The id of the user to which this configuration belongs to.- Specified by:
ownerUser
in interfaceDataTableFavoriteConfigurationBuilder
- Parameters:
userId
- the user id
-
name
Description copied from interface:DataTableFavoriteConfigurationBuilder
The name of the configuration.- Specified by:
name
in interfaceDataTableFavoriteConfigurationBuilder
- Parameters:
name
- the name
-
configuration
public DataTableFavoriteConfigurationBuilder configuration(com.fasterxml.jackson.databind.node.ObjectNode configuration) Description copied from interface:DataTableFavoriteConfigurationBuilder
The configuration object.- Specified by:
configuration
in interfaceDataTableFavoriteConfigurationBuilder
- Parameters:
configuration
- the configuration
-
markAsDefault
Description copied from interface:DataTableFavoriteConfigurationBuilder
Whether the configuration should be marked as the default.- Specified by:
markAsDefault
in interfaceDataTableFavoriteConfigurationBuilder
-
unmarkAsDefault
Description copied from interface:DataTableFavoriteConfigurationBuilder
Whether the configuration should be unmarked as the default.- Specified by:
unmarkAsDefault
in interfaceDataTableFavoriteConfigurationBuilder
-
save
Description copied from interface:DataTableFavoriteConfigurationBuilder
Save the configuration. It would either create a new one (if none exists for the given user) or update an existing one.- Specified by:
save
in interfaceDataTableFavoriteConfigurationBuilder
-
execute
- Specified by:
execute
in interfaceCommand<DataTableFavoriteConfiguration>
-
updateConfiguration
-
createConfiguration
-