Class ThemeService
java.lang.Object
fr.paris.lutece.portal.service.theme.ThemeService
- All Implemented Interfaces:
IThemeService
ThemeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the global themeGet the theme with a given code themeGet the list of 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
-
Constructor Details
-
ThemeService
public ThemeService()
-
-
Method Details
-
getThemes
Get the list of themes- Specified by:
getThemesin interfaceIThemeService- Returns:
- a list of themes
-
getTheme
Get the theme with a given code theme- Specified by:
getThemein interfaceIThemeService- Parameters:
strCodeTheme- the code theme- Returns:
- the theme
-
getGlobalTheme
Get the global theme- Specified by:
getGlobalThemein interfaceIThemeService- Returns:
- the global theme
-
getUserTheme
Gets the theme selected by the user- Specified by:
getUserThemein interfaceIThemeService- Parameters:
request- The HTTP request- Returns:
- The theme if available otherwise null
-
getThemesList
Return the list of all the themes- Specified by:
getThemesListin interfaceIThemeService- Returns:
- A collection of themes objects
-
setGlobalTheme
Set the global theme- Specified by:
setGlobalThemein interfaceIThemeService- Parameters:
strGlobalTheme- the code theme of the global theme
-
isValidTheme
Checks if the theme is among existing themes- Specified by:
isValidThemein interfaceIThemeService- Parameters:
strCodeTheme- The theme to check- Returns:
- True if the theme is valid
-