Package com.hybris.backoffice.theme
Interface BackofficeThemeService
- All Known Implementing Classes:
DefaultBackofficeThemeService
public interface BackofficeThemeService
Service used to set the theme used by backoffice or get the theme currently used by backoffice
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<ThemeModel>Get all available themes.@NotNull List<ThemeModel>Get all Backoffice base themes which can be based by customer theme.@NotNull ThemeModelGet current theme.@NotNull ThemeModelGet the theme in user level.@NotNull List<CustomThemeModel>Get all custom themes.@NotNull ThemeModelGet default theme.@javax.validation.constraints.NotNull intGet maximum of custom theme@NotNull ThemeModelGet the theme in system level.@NotNull BackofficeThemeLevelGet theme level.@NotNull ThemeModelGet default theme in user level.voidsetCurrentUserTheme(@NotNull String code) Set the theme in user level.voidsetSystemTheme(@NotNull String code) Set the theme in system level.voidsetThemeLevel(@NotNull BackofficeThemeLevel level) Set theme level.voidSet default user level theme.
-
Method Details
-
getCurrentTheme
Get current theme.- Returns:
- the current theme
-
getCurrentUserTheme
Get the theme in user level.- Returns:
- the theme in user level
-
setCurrentUserTheme
Set the theme in user level.- Parameters:
code- theme code- Throws:
ThemeNotFound
-
getSystemTheme
Get the theme in system level.- Returns:
- the theme in system level
-
setSystemTheme
Set the theme in system level.- Parameters:
code- theme code- Throws:
ThemeNotFound
-
getAvailableThemes
Get all available themes.- Returns:
- all available themes
-
getBaseThemes
Get all Backoffice base themes which can be based by customer theme.- Returns:
- all Backoffice base themes
-
getCustomThemes
Get all custom themes.- Returns:
- all custom themes
-
getDefaultTheme
Get default theme.- Returns:
- the default theme
-
getThemeLevel
Get theme level.- Returns:
- the theme level
-
setThemeLevel
Set theme level.- Parameters:
level- theme level
-
setUserLevelDefaultTheme
Set default user level theme.- Parameters:
code- theme code- Throws:
ThemeNotFound
-
getUserLevelDefaultTheme
Get default theme in user level.- Returns:
- the default theme in user level
-
getMaximumOfCustomTheme
@NotNull @javax.validation.constraints.NotNull int getMaximumOfCustomTheme()Get maximum of custom theme- Returns:
- maximum of custom theme
-