Package com.axelor.meta.theme
Class MetaThemeServiceImpl
java.lang.Object
com.axelor.meta.theme.MetaThemeServiceImpl
- All Implemented Interfaces:
MetaThemeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAvailableThemes
(User user) Retrieve the available themes for the user.protected List
<AvailableTheme> getDefaultThemes
(User user) getMetaThemes
(User user) Retrieve the theme content depending on the given name.
-
Constructor Details
-
MetaThemeServiceImpl
public MetaThemeServiceImpl()
-
-
Method Details
-
getTheme
Description copied from interface:MetaThemeService
Retrieve the theme content depending on the given name. The current user can be used to retrieve theme depending on user context.- Specified by:
getTheme
in interfaceMetaThemeService
- Parameters:
name
- the theme nameuser
- the current user, or null if not available- Returns:
MetaTheme
-
getAvailableThemes
Retrieve the available themes for the user.By default, all selectable non archived themes as well as
light
/dark
andauto
.- Specified by:
getAvailableThemes
in interfaceMetaThemeService
- Parameters:
user
- the given user- Returns:
- list of
AvailableTheme
-
getMetaThemes
-
getDefaultThemes
-