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