public class ConfigurationServiceImpl extends CommonEngineServiceImpl<PlatformEngineConfiguration> implements ConfigurationService
commandExecutor
configuration
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, setCommandExecutor
getConfiguration
public ConfigurationServiceImpl(PlatformEngineConfiguration configuration)
public Map<String,String> getLanguages()
ConfigurationService
getLanguages
in interface ConfigurationService
public ThemeQuery createThemeQuery()
ConfigurationService
createThemeQuery
in interface ConfigurationService
public ThemeBuilder createThemeBuilder(String themeName)
ConfigurationService
createThemeBuilder
in interface ConfigurationService
themeName
- the name of the themepublic void deleteTheme(String themeId)
ConfigurationService
deleteTheme
in interface ConfigurationService
themeId
- the id of the theme that should be deletedpublic void setDefaultThemeName(String themeName, String tenantId)
ConfigurationService
setDefaultThemeName
in interface ConfigurationService
themeName
- the name of the default themetenantId
- the id of the tenantpublic String getDefaultThemeName(String tenantId)
ConfigurationService
getDefaultThemeName
in interface ConfigurationService
tenantId
- the id of the tenantpublic DataTableFavoriteConfigurationQuery createDataTableFavoriteConfigurationQuery()
ConfigurationService
createDataTableFavoriteConfigurationQuery
in interface ConfigurationService
public DataTableFavoriteConfigurationBuilder createDataTableFavoriteConfigurationBuilder(String favoriteKey)
ConfigurationService
createDataTableFavoriteConfigurationBuilder
in interface ConfigurationService
favoriteKey
- the key of the favoritepublic DataTableFavoriteConfigurationBuilder createUpdateDataTableFavoriteConfigurationBuilder(String favoriteKey, String configurationId)
ConfigurationService
createUpdateDataTableFavoriteConfigurationBuilder
in interface ConfigurationService
favoriteKey
- the key of the configurationconfigurationId
- the id of the configurationpublic void deleteDataTableFavoriteConfiguration(String configurationId)
ConfigurationService
deleteDataTableFavoriteConfiguration
in interface ConfigurationService
configurationId
- the id of the favorite that should be deletedpublic SystemConfigurationQuery createSystemConfigurationQuery()
ConfigurationService
createSystemConfigurationQuery
in interface ConfigurationService
public SystemConfigurationBuilder createSystemConfigurationBuilder(String type)
ConfigurationService
createSystemConfigurationBuilder
in interface ConfigurationService
type
- the type of the system configurationpublic SystemConfigurationBuilder createUpdateSystemConfigurationBuilder(String configurationId)
ConfigurationService
createUpdateSystemConfigurationBuilder
in interface ConfigurationService
configurationId
- the id of the configurationpublic void deleteSystemConfiguration(String configurationId)
ConfigurationService
deleteSystemConfiguration
in interface ConfigurationService
configurationId
- the id of the system configuration that should be deletedpublic ConfigurationPropertyQuery createConfigurationPropertyQuery()
ConfigurationService
createConfigurationPropertyQuery
in interface ConfigurationService
public ConfigurationPropertyBuilder createConfigurationPropertyBuilder(String namespace, String name)
ConfigurationService
createConfigurationPropertyBuilder
in interface ConfigurationService
namespace
- the mandatory namespace for the configurationname
- the mandatory name for the configurationpublic ConfigurationPropertyBuilder createUpdateConfigurationPropertyBuilder(String configurationId)
ConfigurationService
createUpdateConfigurationPropertyBuilder
in interface ConfigurationService
configurationId
- the id of the configuration that should be updatedpublic void setOwner(String configurationId, String userId)
ConfigurationService
setOwner
in interface ConfigurationService
configurationId
- the id of the configurationuserId
- the id of the user