Class ConfigurationServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<PlatformEngineConfiguration>
-
- com.flowable.platform.engine.impl.configuration.ConfigurationServiceImpl
-
- All Implemented Interfaces:
ConfigurationService
public class ConfigurationServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<PlatformEngineConfiguration> implements ConfigurationService
- Author:
- Filip Hrisafov
-
-
Constructor Summary
Constructors Constructor Description ConfigurationServiceImpl(PlatformEngineConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationPropertyBuildercreateConfigurationPropertyBuilder(java.lang.String namespace, java.lang.String name)Create a builder for a configuration property.ConfigurationPropertyQuerycreateConfigurationPropertyQuery()Create a query for configuration propertiesDataTableFavoriteConfigurationBuildercreateDataTableFavoriteConfigurationBuilder(java.lang.String favoriteKey)Create a data table favorite configuration builder with the given favorite key.DataTableFavoriteConfigurationQuerycreateDataTableFavoriteConfigurationQuery()Create a query for querying data table configurations.ThemeBuildercreateThemeBuilder(java.lang.String themeName)Create a theme builder for theme with the given nameThemeQuerycreateThemeQuery()Create a query for querying themesConfigurationPropertyBuildercreateUpdateConfigurationPropertyBuilder(java.lang.String configurationId)Create an update builder for a configuration property.DataTableFavoriteConfigurationBuildercreateUpdateDataTableFavoriteConfigurationBuilder(java.lang.String favoriteKey, java.lang.String configurationId)Create an update data table favorite configuration builder with the given key and configuration id.voiddeleteDataTableFavoriteConfiguration(java.lang.String configurationId)Delete the favorite with the given id.voiddeleteTheme(java.lang.String themeId)Delete the theme with the given id.java.lang.StringgetDefaultThemeName(java.lang.String tenantId)Get the default theme name for the given tenantjava.util.Map<java.lang.String,java.lang.String>getLanguages()The Locale mapping from browser Locale key to the key that should be used for Work and the Form enginevoidsetDefaultThemeName(java.lang.String themeName, java.lang.String tenantId)Set the default theme name for the given tenantvoidsetOwner(java.lang.String configurationId, java.lang.String userId)Add an identity link of the given type between the configuration with the given id and the user.-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
-
-
-
Constructor Detail
-
ConfigurationServiceImpl
public ConfigurationServiceImpl(PlatformEngineConfiguration configuration)
-
-
Method Detail
-
getLanguages
public java.util.Map<java.lang.String,java.lang.String> getLanguages()
Description copied from interface:ConfigurationServiceThe Locale mapping from browser Locale key to the key that should be used for Work and the Form engine- Specified by:
getLanguagesin interfaceConfigurationService
-
createThemeQuery
public ThemeQuery createThemeQuery()
Description copied from interface:ConfigurationServiceCreate a query for querying themes- Specified by:
createThemeQueryin interfaceConfigurationService
-
createThemeBuilder
public ThemeBuilder createThemeBuilder(java.lang.String themeName)
Description copied from interface:ConfigurationServiceCreate a theme builder for theme with the given name- Specified by:
createThemeBuilderin interfaceConfigurationService- Parameters:
themeName- the name of the theme
-
deleteTheme
public void deleteTheme(java.lang.String themeId)
Description copied from interface:ConfigurationServiceDelete the theme with the given id.- Specified by:
deleteThemein interfaceConfigurationService- Parameters:
themeId- the id of the theme that should be deleted
-
setDefaultThemeName
public void setDefaultThemeName(java.lang.String themeName, java.lang.String tenantId)Description copied from interface:ConfigurationServiceSet the default theme name for the given tenant- Specified by:
setDefaultThemeNamein interfaceConfigurationService- Parameters:
themeName- the name of the default themetenantId- the id of the tenant
-
getDefaultThemeName
public java.lang.String getDefaultThemeName(java.lang.String tenantId)
Description copied from interface:ConfigurationServiceGet the default theme name for the given tenant- Specified by:
getDefaultThemeNamein interfaceConfigurationService- Parameters:
tenantId- the id of the tenant- Returns:
- the name of the default theme
-
createDataTableFavoriteConfigurationQuery
public DataTableFavoriteConfigurationQuery createDataTableFavoriteConfigurationQuery()
Description copied from interface:ConfigurationServiceCreate a query for querying data table configurations.- Specified by:
createDataTableFavoriteConfigurationQueryin interfaceConfigurationService
-
createDataTableFavoriteConfigurationBuilder
public DataTableFavoriteConfigurationBuilder createDataTableFavoriteConfigurationBuilder(java.lang.String favoriteKey)
Description copied from interface:ConfigurationServiceCreate a data table favorite configuration builder with the given favorite key.- Specified by:
createDataTableFavoriteConfigurationBuilderin interfaceConfigurationService- Parameters:
favoriteKey- the key of the favorite
-
createUpdateDataTableFavoriteConfigurationBuilder
public DataTableFavoriteConfigurationBuilder createUpdateDataTableFavoriteConfigurationBuilder(java.lang.String favoriteKey, java.lang.String configurationId)
Description copied from interface:ConfigurationServiceCreate an update data table favorite configuration builder with the given key and configuration id.- Specified by:
createUpdateDataTableFavoriteConfigurationBuilderin interfaceConfigurationService- Parameters:
favoriteKey- the key of the configurationconfigurationId- the id of the configuration
-
deleteDataTableFavoriteConfiguration
public void deleteDataTableFavoriteConfiguration(java.lang.String configurationId)
Description copied from interface:ConfigurationServiceDelete the favorite with the given id.- Specified by:
deleteDataTableFavoriteConfigurationin interfaceConfigurationService- Parameters:
configurationId- the id of the favorite that should be deleted
-
createConfigurationPropertyQuery
public ConfigurationPropertyQuery createConfigurationPropertyQuery()
Description copied from interface:ConfigurationServiceCreate a query for configuration properties- Specified by:
createConfigurationPropertyQueryin interfaceConfigurationService
-
createConfigurationPropertyBuilder
public ConfigurationPropertyBuilder createConfigurationPropertyBuilder(java.lang.String namespace, java.lang.String name)
Description copied from interface:ConfigurationServiceCreate a builder for a configuration property. Using this builder will always create a new property.- Specified by:
createConfigurationPropertyBuilderin interfaceConfigurationService- Parameters:
namespace- the mandatory namespace for the configurationname- the mandatory name for the configuration
-
createUpdateConfigurationPropertyBuilder
public ConfigurationPropertyBuilder createUpdateConfigurationPropertyBuilder(java.lang.String configurationId)
Description copied from interface:ConfigurationServiceCreate an update builder for a configuration property. Using this builder will always update the configuration property for the given id.- Specified by:
createUpdateConfigurationPropertyBuilderin interfaceConfigurationService- Parameters:
configurationId- the id of the configuration that should be updated
-
setOwner
public void setOwner(java.lang.String configurationId, java.lang.String userId)Description copied from interface:ConfigurationServiceAdd an identity link of the given type between the configuration with the given id and the user.- Specified by:
setOwnerin interfaceConfigurationService- Parameters:
configurationId- the id of the configurationuserId- the id of the user
-
-