Interface ConfigurationService
-
- All Known Implementing Classes:
ConfigurationServiceImpl
public interface ConfigurationService
- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationPropertyBuilder
createConfigurationPropertyBuilder(String namespace, String name)
Create a builder for a configuration property.ConfigurationPropertyQuery
createConfigurationPropertyQuery()
Create a query for configuration propertiesDataTableFavoriteConfigurationBuilder
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 nameThemeQuery
createThemeQuery()
Create a query for querying themesConfigurationPropertyBuilder
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 idvoid
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 tenantMap<String,String>
getLanguages()
The Locale mapping from browser Locale key to the key that should be used for Work and the Form enginevoid
setDefaultThemeName(String themeName, String tenantId)
Set the default theme name for the given tenantvoid
setOwner(String configurationId, String userId)
Add an identity link of the given type between the configuration with the given id and the user.
-
-
-
Method Detail
-
getLanguages
Map<String,String> getLanguages()
The Locale mapping from browser Locale key to the key that should be used for Work and the Form engine
-
createThemeQuery
ThemeQuery createThemeQuery()
Create a query for querying themes
-
createThemeBuilder
ThemeBuilder createThemeBuilder(String themeName)
Create a theme builder for theme with the given name- Parameters:
themeName
- the name of the theme
-
deleteTheme
void deleteTheme(String themeId)
Delete the theme with the given id.- Parameters:
themeId
- the id of the theme that should be deleted
-
setDefaultThemeName
void setDefaultThemeName(String themeName, String tenantId)
Set the default theme name for the given tenant- Parameters:
themeName
- the name of the default themetenantId
- the id of the tenant
-
getDefaultThemeName
String getDefaultThemeName(String tenantId)
Get the default theme name for the given tenant- Parameters:
tenantId
- the id of the tenant- Returns:
- the name of the default theme
-
createDataTableFavoriteConfigurationQuery
DataTableFavoriteConfigurationQuery createDataTableFavoriteConfigurationQuery()
Create a query for querying data table configurations.
-
createDataTableFavoriteConfigurationBuilder
DataTableFavoriteConfigurationBuilder createDataTableFavoriteConfigurationBuilder(String favoriteKey)
Create a data table favorite configuration builder with the given favorite key.- Parameters:
favoriteKey
- the key of the favorite
-
createUpdateDataTableFavoriteConfigurationBuilder
DataTableFavoriteConfigurationBuilder createUpdateDataTableFavoriteConfigurationBuilder(String favoriteKey, String configurationId)
Create an update data table favorite configuration builder with the given key and configuration id.- Parameters:
favoriteKey
- the key of the configurationconfigurationId
- the id of the configuration
-
deleteDataTableFavoriteConfiguration
void deleteDataTableFavoriteConfiguration(String configurationId)
Delete the favorite with the given id.- Parameters:
configurationId
- the id of the favorite that should be deleted
-
createSystemConfigurationQuery
SystemConfigurationQuery createSystemConfigurationQuery()
Create a query for querying system configuration.
-
createSystemConfigurationBuilder
SystemConfigurationBuilder createSystemConfigurationBuilder(String type)
Create a system configuration builder with the given type.- Parameters:
type
- the type of the system configuration
-
createUpdateSystemConfigurationBuilder
SystemConfigurationBuilder createUpdateSystemConfigurationBuilder(String configurationId)
Create an update system configuration builder with the given configuration id- Parameters:
configurationId
- the id of the configuration
-
deleteSystemConfiguration
void deleteSystemConfiguration(String configurationId)
Delete the system configuration with the given id.- Parameters:
configurationId
- the id of the system configuration that should be deleted
-
createConfigurationPropertyQuery
ConfigurationPropertyQuery createConfigurationPropertyQuery()
Create a query for configuration properties
-
createConfigurationPropertyBuilder
ConfigurationPropertyBuilder createConfigurationPropertyBuilder(String namespace, String name)
Create a builder for a configuration property. Using this builder will always create a new property.- Parameters:
namespace
- the mandatory namespace for the configurationname
- the mandatory name for the configuration
-
createUpdateConfigurationPropertyBuilder
ConfigurationPropertyBuilder createUpdateConfigurationPropertyBuilder(String configurationId)
Create an update builder for a configuration property. Using this builder will always update the configuration property for the given id.- Parameters:
configurationId
- the id of the configuration that should be updated
-
-