Class DataTableFavoriteConfigurationBuilderImpl
- java.lang.Object
-
- com.flowable.platform.engine.impl.configuration.datatable.DataTableFavoriteConfigurationBuilderImpl
-
- All Implemented Interfaces:
DataTableFavoriteConfigurationBuilder,org.flowable.common.engine.impl.interceptor.Command<DataTableFavoriteConfiguration>
public class DataTableFavoriteConfigurationBuilderImpl extends java.lang.Object implements DataTableFavoriteConfigurationBuilder, org.flowable.common.engine.impl.interceptor.Command<DataTableFavoriteConfiguration>
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.common.engine.impl.interceptor.CommandExecutorcommandExecutorprotected com.fasterxml.jackson.databind.node.ObjectNodeconfigurationprotected java.lang.StringconfigurationIdprotected java.lang.StringfavoriteKeyprotected booleanforUpdateprotected booleanmarkAsDefaultprotected java.lang.Stringnameprotected java.lang.StringownerUserprotected java.lang.StringtenantIdprotected booleanunmarkAsDefault
-
Constructor Summary
Constructors Constructor Description DataTableFavoriteConfigurationBuilderImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, java.lang.String favoriteKey, java.lang.String configurationId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTableFavoriteConfigurationBuilderconfiguration(com.fasterxml.jackson.databind.node.ObjectNode configuration)The configuration object.protected ConfigurationPropertycreateConfiguration(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)DataTableFavoriteConfigurationexecute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)DataTableFavoriteConfigurationBuildermarkAsDefault()Whether the configuration should be marked as the default.DataTableFavoriteConfigurationBuildername(java.lang.String name)The name of the configuration.DataTableFavoriteConfigurationBuilderownerUser(java.lang.String userId)The id of the user to which this configuration belongs to.DataTableFavoriteConfigurationsave()Save the configuration.DataTableFavoriteConfigurationBuildertenantId(java.lang.String tenantId)The tenant if od the configurationDataTableFavoriteConfigurationBuilderunmarkAsDefault()Whether the configuration should be unmarked as the default.protected ConfigurationPropertyEntityupdateConfiguration(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
-
-
Field Detail
-
commandExecutor
protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor
-
favoriteKey
protected final java.lang.String favoriteKey
-
configurationId
protected final java.lang.String configurationId
-
forUpdate
protected final boolean forUpdate
-
name
protected java.lang.String name
-
tenantId
protected java.lang.String tenantId
-
ownerUser
protected java.lang.String ownerUser
-
configuration
protected com.fasterxml.jackson.databind.node.ObjectNode configuration
-
markAsDefault
protected boolean markAsDefault
-
unmarkAsDefault
protected boolean unmarkAsDefault
-
-
Method Detail
-
tenantId
public DataTableFavoriteConfigurationBuilder tenantId(java.lang.String tenantId)
Description copied from interface:DataTableFavoriteConfigurationBuilderThe tenant if od the configuration- Specified by:
tenantIdin interfaceDataTableFavoriteConfigurationBuilder- Parameters:
tenantId- the tenant id
-
ownerUser
public DataTableFavoriteConfigurationBuilder ownerUser(java.lang.String userId)
Description copied from interface:DataTableFavoriteConfigurationBuilderThe id of the user to which this configuration belongs to.- Specified by:
ownerUserin interfaceDataTableFavoriteConfigurationBuilder- Parameters:
userId- the user id
-
name
public DataTableFavoriteConfigurationBuilder name(java.lang.String name)
Description copied from interface:DataTableFavoriteConfigurationBuilderThe name of the configuration.- Specified by:
namein interfaceDataTableFavoriteConfigurationBuilder- Parameters:
name- the name
-
configuration
public DataTableFavoriteConfigurationBuilder configuration(com.fasterxml.jackson.databind.node.ObjectNode configuration)
Description copied from interface:DataTableFavoriteConfigurationBuilderThe configuration object.- Specified by:
configurationin interfaceDataTableFavoriteConfigurationBuilder- Parameters:
configuration- the configuration
-
markAsDefault
public DataTableFavoriteConfigurationBuilder markAsDefault()
Description copied from interface:DataTableFavoriteConfigurationBuilderWhether the configuration should be marked as the default.- Specified by:
markAsDefaultin interfaceDataTableFavoriteConfigurationBuilder
-
unmarkAsDefault
public DataTableFavoriteConfigurationBuilder unmarkAsDefault()
Description copied from interface:DataTableFavoriteConfigurationBuilderWhether the configuration should be unmarked as the default.- Specified by:
unmarkAsDefaultin interfaceDataTableFavoriteConfigurationBuilder
-
save
public DataTableFavoriteConfiguration save()
Description copied from interface:DataTableFavoriteConfigurationBuilderSave the configuration. It would either create a new one (if none exists for the given user) or update an existing one.- Specified by:
savein interfaceDataTableFavoriteConfigurationBuilder
-
execute
public DataTableFavoriteConfiguration execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
executein interfaceorg.flowable.common.engine.impl.interceptor.Command<DataTableFavoriteConfiguration>
-
updateConfiguration
protected ConfigurationPropertyEntity updateConfiguration(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
createConfiguration
protected ConfigurationProperty createConfiguration(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
-