Interface IThemeService
- All Known Implementing Classes:
ThemeService
public interface IThemeService
IThemeService
-
Method Summary
Modifier and TypeMethodDescriptionGet the global themeGet the theme given thecode_themeGet all themesReturn the list of all the themesgetUserTheme(jakarta.servlet.http.HttpServletRequest request) Gets the theme selected by the userbooleanisValidTheme(String strCodeTheme) Checks if the theme is among existing themesvoidsetGlobalTheme(String strGlobalTheme, String strGlobalThemeVersion) Set the global theme
-
Method Details
-
getGlobalTheme
Theme getGlobalTheme()Get the global theme- Returns:
- the default theme
-
setGlobalTheme
Set the global theme- Parameters:
strGlobalTheme- the global theme
-
getTheme
Get the theme given thecode_theme- Parameters:
strTheme- thecode_theme- Returns:
- the theme
-
getThemes
ReferenceList getThemes()Get all themes- Returns:
- a list of Theme
-
getUserTheme
Gets the theme selected by the user- Parameters:
request- The HTTP request- Returns:
- The theme if available otherwise null
-
getThemesList
Collection<Theme> getThemesList()Return the list of all the themes- Returns:
- A collection of themes objects
-
isValidTheme
Checks if the theme is among existing themes- Parameters:
strCodeTheme- The theme to check- Returns:
- True if the theme is valid
-