Interface IThemeService
public interface IThemeService
IThemeService
-
Method Summary
Modifier and TypeMethodDescriptionCreation of an instance of a themeGet the global themeGet the theme given thecode_themeGet all themesReturn the list of all the themesgetUserTheme(javax.servlet.http.HttpServletRequest request) Gets the theme selected by the userbooleanisValidTheme(String strCodeTheme) Checks if the theme is among existing themesvoidRemove the theme whose identifier is specified in parametervoidsetGlobalTheme(String strGlobalTheme) Set the global themeUpdate of the theme which is specified
-
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
-
create
Creation of an instance of a theme- Parameters:
theme- An instance of a theme which contains the informations to store- Returns:
- The instance of a theme which has been created with its primary key.
-
update
Update of the theme which is specified- Parameters:
theme- The instance of the theme which contains the data to store- Returns:
- The instance of the theme which has been updated
-
remove
Remove the theme whose identifier is specified in parameter- Parameters:
strCodeTheme- The identifier of the theme to remove
-
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
-