Interface ActiveThemeProvider

All Known Implementing Classes:
CookieThemeProvider, SessionThemeProvider

public interface ActiveThemeProvider
#### Description The ActiveThemeProvider interface is used to identify the active theme when rendering web resources.
  • Method Summary

    Modifier and Type
    Method
    Description
    returns the current active theme (can be user/session scoped).
    void
    sets the active theme
    void
    sets the active theme by its name.
  • Method Details

    • getActiveTheme

      ITheme getActiveTheme()
      returns the current active theme (can be user/session scoped). If none is set a default theme should be returned (implementation specific). There is a session scoped implementation: SessionThemeProvider
      Returns:
      the current active theme
    • setActiveTheme

      void setActiveTheme(String themeName)
      sets the active theme by its name.
      Parameters:
      themeName - the theme name
    • setActiveTheme

      void setActiveTheme(ITheme theme)
      sets the active theme
      Parameters:
      theme - the theme to set