Class MetaThemeServiceImpl

java.lang.Object
com.axelor.meta.theme.MetaThemeServiceImpl
All Implemented Interfaces:
MetaThemeService

public class MetaThemeServiceImpl extends Object implements MetaThemeService
  • Constructor Details

    • MetaThemeServiceImpl

      public MetaThemeServiceImpl()
  • Method Details

    • getTheme

      public MetaTheme getTheme(String name, User user)
      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 interface MetaThemeService
      Parameters:
      name - the theme name
      user - 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/dark and auto.

      Specified by:
      getAvailableThemes in interface MetaThemeService
      Parameters:
      user - the given user
      Returns:
      list of AvailableTheme
    • getMetaThemes

      protected List<MetaTheme> getMetaThemes(User user)
    • getDefaultThemes

      protected List<AvailableTheme> getDefaultThemes(User user)