Package com.atlassian.confluence.themes
Class DefaultColourSchemeManager
- java.lang.Object
-
- com.atlassian.confluence.themes.DefaultColourSchemeManager
-
- All Implemented Interfaces:
ColourSchemeManager
public class DefaultColourSchemeManager extends Object implements ColourSchemeManager
-
-
Constructor Summary
Constructors Constructor Description DefaultColourSchemeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColourSchemeSetting(Space space)
ColourScheme
getDefaultColourScheme()
Retrieve only the default color scheme, useful for the superbatch.ColourScheme
getGlobalColourScheme()
Method returns a ChainedColour Scheme.ColourScheme
getGlobalColourSchemeCustom()
Retrieve the global colour scheme for editing - with system defaults.BaseColourScheme
getGlobalColourSchemeIsolated()
Retrieve the isolated global colour scheme for editing - no global defaults.SettingsManager
getSettingsManager()
ColourScheme
getSpaceColourScheme(Space space)
Retrieve the colour scheme for a space - for display, complete with global defaults.ColourScheme
getSpaceColourScheme(String spaceKey)
Method returns a ChainedColour Scheme for a specific space.ColourScheme
getSpaceColourSchemeCustom(String spaceKey)
Retrieve the custom colour scheme for a space - for editing, complete with global defaults and system defaults.BaseColourScheme
getSpaceColourSchemeIsolated(String spaceKey)
Retrieve the isolated colour scheme for a space for editing - no global defaults.ColourScheme
getSpaceThemeColourScheme(String spaceKey)
ColourScheme
getThemeColourScheme()
void
resetColourScheme(Space space)
void
saveGlobalColourScheme(BaseColourScheme colourScheme)
void
saveSpaceColourScheme(Space space, BaseColourScheme colourScheme)
void
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
void
setColourSchemeSetting(Space space, String value)
void
setEventManager(com.atlassian.event.EventManager eventManager)
void
setSettingsManager(SettingsManager settingsManager)
void
setThemeManager(ThemeManager themeManager)
-
-
-
Method Detail
-
setBandanaManager
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
-
setThemeManager
public void setThemeManager(ThemeManager themeManager)
-
getDefaultColourScheme
public ColourScheme getDefaultColourScheme()
Description copied from interface:ColourSchemeManager
Retrieve only the default color scheme, useful for the superbatch.- Specified by:
getDefaultColourScheme
in interfaceColourSchemeManager
-
getSpaceColourScheme
public ColourScheme getSpaceColourScheme(Space space)
Description copied from interface:ColourSchemeManager
Retrieve the colour scheme for a space - for display, complete with global defaults.For editing, use
ColourSchemeManager.getSpaceColourScheme(String)
()}.- Specified by:
getSpaceColourScheme
in interfaceColourSchemeManager
-
getSpaceColourScheme
public ColourScheme getSpaceColourScheme(String spaceKey)
Method returns a ChainedColour Scheme for a specific space. The following priorities apply to the schemes in the chain.- Selected colour scheme (global, theme, custom)
- Currently used global scheme
- Default colour scheme
- Specified by:
getSpaceColourScheme
in interfaceColourSchemeManager
- Returns:
- a ChainedColourScheme
-
getGlobalColourScheme
public ColourScheme getGlobalColourScheme()
Method returns a ChainedColour Scheme. The following priorities apply to the schemes in the chain.- Selected global colour scheme (theme, custom)
- Default colour scheme
- Specified by:
getGlobalColourScheme
in interfaceColourSchemeManager
- Returns:
- ChainedColourScheme
-
getThemeColourScheme
public ColourScheme getThemeColourScheme()
- Specified by:
getThemeColourScheme
in interfaceColourSchemeManager
-
getSpaceThemeColourScheme
public ColourScheme getSpaceThemeColourScheme(String spaceKey)
- Specified by:
getSpaceThemeColourScheme
in interfaceColourSchemeManager
-
getSpaceColourSchemeIsolated
public BaseColourScheme getSpaceColourSchemeIsolated(String spaceKey)
Description copied from interface:ColourSchemeManager
Retrieve the isolated colour scheme for a space for editing - no global defaults.For display, use
ColourSchemeManager.getSpaceColourScheme(com.atlassian.confluence.spaces.Space)
.- Specified by:
getSpaceColourSchemeIsolated
in interfaceColourSchemeManager
- Returns:
- a
ColourScheme
that does not have any backingColourScheme
s.
-
getSpaceColourSchemeCustom
public ColourScheme getSpaceColourSchemeCustom(String spaceKey)
Description copied from interface:ColourSchemeManager
Retrieve the custom colour scheme for a space - for editing, complete with global defaults and system defaults.- Specified by:
getSpaceColourSchemeCustom
in interfaceColourSchemeManager
-
getGlobalColourSchemeIsolated
public BaseColourScheme getGlobalColourSchemeIsolated()
Description copied from interface:ColourSchemeManager
Retrieve the isolated global colour scheme for editing - no global defaults.For display, use
ColourSchemeManager.getGlobalColourScheme()
.- Specified by:
getGlobalColourSchemeIsolated
in interfaceColourSchemeManager
- Returns:
- a
ColourScheme
that does not have any backingColourScheme
s.
-
getGlobalColourSchemeCustom
public ColourScheme getGlobalColourSchemeCustom()
Description copied from interface:ColourSchemeManager
Retrieve the global colour scheme for editing - with system defaults.- Specified by:
getGlobalColourSchemeCustom
in interfaceColourSchemeManager
-
resetColourScheme
public void resetColourScheme(Space space)
- Specified by:
resetColourScheme
in interfaceColourSchemeManager
-
saveSpaceColourScheme
public void saveSpaceColourScheme(Space space, BaseColourScheme colourScheme)
- Specified by:
saveSpaceColourScheme
in interfaceColourSchemeManager
-
saveGlobalColourScheme
public void saveGlobalColourScheme(BaseColourScheme colourScheme)
- Specified by:
saveGlobalColourScheme
in interfaceColourSchemeManager
-
setColourSchemeSetting
public void setColourSchemeSetting(Space space, String value)
- Specified by:
setColourSchemeSetting
in interfaceColourSchemeManager
-
getColourSchemeSetting
public String getColourSchemeSetting(Space space)
- Specified by:
getColourSchemeSetting
in interfaceColourSchemeManager
-
getSettingsManager
public SettingsManager getSettingsManager()
-
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
-
setEventManager
public void setEventManager(com.atlassian.event.EventManager eventManager)
-
-