org.pentaho.platform.web.html.themes
Class DefaultThemeManager

java.lang.Object
  extended by org.pentaho.platform.web.html.themes.DefaultThemeManager
All Implemented Interfaces:
IThemeManager

public class DefaultThemeManager
extends Object
implements IThemeManager

Default IThemeResolver implementation. DefaultThemeManager collects information about available system and local themes. User: nbaker Date: 5/15/11


Constructor Summary
DefaultThemeManager()
           
 
Method Summary
 Map<String,ModuleThemeInfo> collectAllModuleThemes()
           
 Map<String,Theme> collectAllSystemThemes()
           
 Theme getModuleTheme(String moduleName, String themeId)
          Returns the named local theme for the given named module or null if either is not found
 ModuleThemeInfo getModuleThemeInfo(String moduleName)
          Returns the MoudleThemeInfo object containing all themes for the given module name or null if not found.
 Theme getSystemTheme(String themeId)
          Returns the named theme or null if not found.
 List<String> getSystemThemeIds()
          Return a list of available system themes.
 List<IThemeResolver> getThemeResolvers()
           
 void refresh()
          Force the Theme Manager to recalculate system and module themes
 void setThemeResolvers(List<IThemeResolver> resolvers)
          Set the collection of IThemeResolver objects used to find available themes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultThemeManager

public DefaultThemeManager()
Method Detail

getSystemThemeIds

public List<String> getSystemThemeIds()
Description copied from interface: IThemeManager
Return a list of available system themes.

Specified by:
getSystemThemeIds in interface IThemeManager
Returns:
List of themes

getSystemTheme

public Theme getSystemTheme(String themeId)
Description copied from interface: IThemeManager
Returns the named theme or null if not found.

Specified by:
getSystemTheme in interface IThemeManager
Returns:
Theme for the supplied name

getModuleTheme

public Theme getModuleTheme(String moduleName,
                            String themeId)
Description copied from interface: IThemeManager
Returns the named local theme for the given named module or null if either is not found

Specified by:
getModuleTheme in interface IThemeManager
Returns:

getModuleThemeInfo

public ModuleThemeInfo getModuleThemeInfo(String moduleName)
Description copied from interface: IThemeManager
Returns the MoudleThemeInfo object containing all themes for the given module name or null if not found.

Specified by:
getModuleThemeInfo in interface IThemeManager
Returns:

collectAllModuleThemes

public Map<String,ModuleThemeInfo> collectAllModuleThemes()

collectAllSystemThemes

public Map<String,Theme> collectAllSystemThemes()

refresh

public void refresh()
Description copied from interface: IThemeManager
Force the Theme Manager to recalculate system and module themes

Specified by:
refresh in interface IThemeManager

setThemeResolvers

public void setThemeResolvers(List<IThemeResolver> resolvers)
Description copied from interface: IThemeManager
Set the collection of IThemeResolver objects used to find available themes

Specified by:
setThemeResolvers in interface IThemeManager

getThemeResolvers

public List<IThemeResolver> getThemeResolvers()