public class ConfigurationServiceImpl extends CommonEngineServiceImpl<PlatformEngineConfiguration> implements ConfigurationService
commandExecutorconfiguration| Constructor and Description |
|---|
ConfigurationServiceImpl(PlatformEngineConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationPropertyBuilder |
createConfigurationPropertyBuilder(String namespace,
String name)
Create a builder for a configuration property.
|
ConfigurationPropertyQuery |
createConfigurationPropertyQuery()
Create a query for configuration properties
|
DataTableFavoriteConfigurationBuilder |
createDataTableFavoriteConfigurationBuilder(String favoriteKey)
Create a data table favorite configuration builder with the given favorite key.
|
DataTableFavoriteConfigurationQuery |
createDataTableFavoriteConfigurationQuery()
Create a query for querying data table configurations.
|
SystemConfigurationBuilder |
createSystemConfigurationBuilder(String type)
Create a system configuration builder with the given type.
|
SystemConfigurationQuery |
createSystemConfigurationQuery()
Create a query for querying system configuration.
|
ThemeBuilder |
createThemeBuilder(String themeName)
Create a theme builder for theme with the given name
|
ThemeQuery |
createThemeQuery()
Create a query for querying themes
|
ConfigurationPropertyBuilder |
createUpdateConfigurationPropertyBuilder(String configurationId)
Create an update builder for a configuration property.
|
DataTableFavoriteConfigurationBuilder |
createUpdateDataTableFavoriteConfigurationBuilder(String favoriteKey,
String configurationId)
Create an update data table favorite configuration builder with the given key and configuration id.
|
SystemConfigurationBuilder |
createUpdateSystemConfigurationBuilder(String configurationId)
Create an update system configuration builder with the given configuration id
|
void |
deleteDataTableFavoriteConfiguration(String configurationId)
Delete the favorite with the given id.
|
void |
deleteSystemConfiguration(String configurationId)
Delete the system configuration with the given id.
|
void |
deleteTheme(String themeId)
Delete the theme with the given id.
|
String |
getDefaultThemeName(String tenantId)
Get the default theme name for the given tenant
|
Map<String,String> |
getLanguages()
The Locale mapping from browser Locale key to the key that should be used for Work and the Form engine
|
void |
setDefaultThemeName(String themeName,
String tenantId)
Set the default theme name for the given tenant
|
void |
setOwner(String configurationId,
String userId)
Add an identity link of the given type between the configuration with the given id and the user.
|
getCommandExecutor, setCommandExecutorgetConfigurationpublic ConfigurationServiceImpl(PlatformEngineConfiguration configuration)
public Map<String,String> getLanguages()
ConfigurationServicegetLanguages in interface ConfigurationServicepublic ThemeQuery createThemeQuery()
ConfigurationServicecreateThemeQuery in interface ConfigurationServicepublic ThemeBuilder createThemeBuilder(String themeName)
ConfigurationServicecreateThemeBuilder in interface ConfigurationServicethemeName - the name of the themepublic void deleteTheme(String themeId)
ConfigurationServicedeleteTheme in interface ConfigurationServicethemeId - the id of the theme that should be deletedpublic void setDefaultThemeName(String themeName, String tenantId)
ConfigurationServicesetDefaultThemeName in interface ConfigurationServicethemeName - the name of the default themetenantId - the id of the tenantpublic String getDefaultThemeName(String tenantId)
ConfigurationServicegetDefaultThemeName in interface ConfigurationServicetenantId - the id of the tenantpublic DataTableFavoriteConfigurationQuery createDataTableFavoriteConfigurationQuery()
ConfigurationServicecreateDataTableFavoriteConfigurationQuery in interface ConfigurationServicepublic DataTableFavoriteConfigurationBuilder createDataTableFavoriteConfigurationBuilder(String favoriteKey)
ConfigurationServicecreateDataTableFavoriteConfigurationBuilder in interface ConfigurationServicefavoriteKey - the key of the favoritepublic DataTableFavoriteConfigurationBuilder createUpdateDataTableFavoriteConfigurationBuilder(String favoriteKey, String configurationId)
ConfigurationServicecreateUpdateDataTableFavoriteConfigurationBuilder in interface ConfigurationServicefavoriteKey - the key of the configurationconfigurationId - the id of the configurationpublic void deleteDataTableFavoriteConfiguration(String configurationId)
ConfigurationServicedeleteDataTableFavoriteConfiguration in interface ConfigurationServiceconfigurationId - the id of the favorite that should be deletedpublic SystemConfigurationQuery createSystemConfigurationQuery()
ConfigurationServicecreateSystemConfigurationQuery in interface ConfigurationServicepublic SystemConfigurationBuilder createSystemConfigurationBuilder(String type)
ConfigurationServicecreateSystemConfigurationBuilder in interface ConfigurationServicetype - the type of the system configurationpublic SystemConfigurationBuilder createUpdateSystemConfigurationBuilder(String configurationId)
ConfigurationServicecreateUpdateSystemConfigurationBuilder in interface ConfigurationServiceconfigurationId - the id of the configurationpublic void deleteSystemConfiguration(String configurationId)
ConfigurationServicedeleteSystemConfiguration in interface ConfigurationServiceconfigurationId - the id of the system configuration that should be deletedpublic ConfigurationPropertyQuery createConfigurationPropertyQuery()
ConfigurationServicecreateConfigurationPropertyQuery in interface ConfigurationServicepublic ConfigurationPropertyBuilder createConfigurationPropertyBuilder(String namespace, String name)
ConfigurationServicecreateConfigurationPropertyBuilder in interface ConfigurationServicenamespace - the mandatory namespace for the configurationname - the mandatory name for the configurationpublic ConfigurationPropertyBuilder createUpdateConfigurationPropertyBuilder(String configurationId)
ConfigurationServicecreateUpdateConfigurationPropertyBuilder in interface ConfigurationServiceconfigurationId - the id of the configuration that should be updatedpublic void setOwner(String configurationId, String userId)
ConfigurationServicesetOwner in interface ConfigurationServiceconfigurationId - the id of the configurationuserId - the id of the user