Package com.atlassian.confluence.themes
Class ExperimentalUnsupportedTheme
- java.lang.Object
-
- com.atlassian.confluence.themes.ExperimentalUnsupportedTheme
-
- All Implemented Interfaces:
Theme
public class ExperimentalUnsupportedTheme extends Object implements Theme
Like BasicTheme, but allows you to do some truly evil stuff like overriding Velocity results and turning off Sitemesh. Use of this theme will BREAK CONFLUENCE REGULARLY, even on point release upgrades.
-
-
Constructor Summary
Constructors Constructor Description ExperimentalUnsupportedTheme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBodyClass()Returns the class for the body element specified by the theme.ColourSchemegetColourScheme()ThemedDecoratorgetDecorator(String path)Collection<? extends ThemeResource>getJavascript()Return the JavaScript resources for the theme.StringgetModuleKey()Returns the module key of the theme plugin module, or null if this theme doesn't come from a plugin.StringgetPluginKey()Return the key of the plugin which includes this theme.Collection<? extends ThemeResource>getStylesheets()Return the stylesheets for the theme.StringgetTopNavLocation()Returns the location of the Velocity file which renders the top navigation.StringgetXworkVelocityPath(String packageName, String actionName, String result, String template)If this theme defines any specific overrides for Velocity XWork results, process them through here.booleanhasSpaceSideBar()Tells whether this theme requires rendering of the Space IA sidebar.voidinit(ThemeModuleDescriptor moduleDescriptor)Initialise the theme details from the given theme module descriptor.booleanisDisableSitemesh()If this flag returns true, all requests for sitemesh templates w.r.t this theme will return NoDecorator, leading to a total bypassing of the sitemesh-based theme system.
-
-
-
Method Detail
-
init
public void init(ThemeModuleDescriptor moduleDescriptor)
Description copied from interface:ThemeInitialise the theme details from the given theme module descriptor.
-
getColourScheme
public ColourScheme getColourScheme()
- Specified by:
getColourSchemein interfaceTheme
-
getBodyClass
public String getBodyClass()
Description copied from interface:ThemeReturns the class for the body element specified by the theme.- Specified by:
getBodyClassin interfaceTheme
-
getDecorator
public ThemedDecorator getDecorator(String path)
- Specified by:
getDecoratorin interfaceTheme
-
getStylesheets
public Collection<? extends ThemeResource> getStylesheets()
Description copied from interface:ThemeReturn the stylesheets for the theme.- Specified by:
getStylesheetsin interfaceTheme- Returns:
- a Collection of
ThemeResources representing custom stylesheets for this theme, or an empty list if none exist.
-
getJavascript
public Collection<? extends ThemeResource> getJavascript()
Description copied from interface:ThemeReturn the JavaScript resources for the theme.- Specified by:
getJavascriptin interfaceTheme- Returns:
- a Collection of
ThemeResources representing custom JavaScript for this theme, or an empty list if none exist.
-
getPluginKey
public String getPluginKey()
Description copied from interface:ThemeReturn the key of the plugin which includes this theme. May return null if the theme doesn't come from a plugin.- Specified by:
getPluginKeyin interfaceTheme
-
getModuleKey
public String getModuleKey()
Description copied from interface:ThemeReturns the module key of the theme plugin module, or null if this theme doesn't come from a plugin.- Specified by:
getModuleKeyin interfaceTheme
-
getXworkVelocityPath
public String getXworkVelocityPath(String packageName, String actionName, String result, String template)
Description copied from interface:ThemeIf this theme defines any specific overrides for Velocity XWork results, process them through here.- Specified by:
getXworkVelocityPathin interfaceTheme- Parameters:
packageName- the package name of the action being runactionName- the name of the action being runresult- the result string of the action being runtemplate- the Velocity template path the action wants to process- Returns:
- the Velocity template path the action should process, with any overrides applied
-
getTopNavLocation
public String getTopNavLocation()
Description copied from interface:ThemeReturns the location of the Velocity file which renders the top navigation.- Specified by:
getTopNavLocationin interfaceTheme
-
hasSpaceSideBar
public boolean hasSpaceSideBar()
Description copied from interface:ThemeTells whether this theme requires rendering of the Space IA sidebar. The Space IA side bar is the one on the left, which contains a tree view of pages, a chronological view of the blogs, and so on.Recommended value: false for themes that don't require rendering of the Space IA sidebar, true otherwise. This value is true for the default theme starting from Confluence 5.0.
- Specified by:
hasSpaceSideBarin interfaceTheme- Returns:
- whether this theme needs rendering of the Space IA side bar.
-
isDisableSitemesh
public boolean isDisableSitemesh()
Description copied from interface:ThemeIf this flag returns true, all requests for sitemesh templates w.r.t this theme will return NoDecorator, leading to a total bypassing of the sitemesh-based theme system.- Specified by:
isDisableSitemeshin interfaceTheme- Returns:
- true if this theme wants to turn off sitemesh
-
-