Package com.axelor.meta.theme
Interface MetaThemeService
-
- All Known Implementing Classes:
MetaThemeServiceImpl
public interface MetaThemeService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<AvailableTheme>
getAvailableThemes(User user)
Retrieve the available themes for the user.MetaTheme
getTheme(String name, User user)
Retrieve the theme content depending on the given name.
-
-
-
Method Detail
-
getTheme
MetaTheme getTheme(String name, @Nullable User user)
Retrieve the theme content depending on the given name. The current user can be used to retrieve theme depending on user context.- Parameters:
name
- the theme nameuser
- the current user, or null if not available- Returns:
MetaTheme
-
getAvailableThemes
List<AvailableTheme> getAvailableThemes(User user)
Retrieve the available themes for the user.- Parameters:
user
- the given user- Returns:
- list of
AvailableTheme
-
-