com.atlassian.confluence.themes
Class DefaultColourSchemeManager

java.lang.Object
  extended by com.atlassian.confluence.themes.DefaultColourSchemeManager
All Implemented Interfaces:
ColourSchemeManager

public class DefaultColourSchemeManager
extends Object
implements ColourSchemeManager


Constructor Summary
DefaultColourSchemeManager()
           
 
Method Summary
 String getColourSchemeSetting(Space space)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultColourSchemeManager

public DefaultColourSchemeManager()
Method Detail

setBandanaManager

public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)

setThemeManager

public void setThemeManager(ThemeManager themeManager)

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 interface ColourSchemeManager

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.
  1. Selected colour scheme (global, theme, custom)
  2. Currently used global scheme
  3. Default colour scheme

Specified by:
getSpaceColourScheme in interface ColourSchemeManager
Returns:
a ChainedColourScheme

getGlobalColourScheme

public ColourScheme getGlobalColourScheme()
Method returns a ChainedColour Scheme. The following priorities apply to the schemes in the chain.
  1. Selected global colour scheme (theme, custom)
  2. Default colour scheme

Specified by:
getGlobalColourScheme in interface ColourSchemeManager
Returns:
ChainedColourScheme

getThemeColourScheme

public ColourScheme getThemeColourScheme()
Specified by:
getThemeColourScheme in interface ColourSchemeManager

getSpaceThemeColourScheme

public ColourScheme getSpaceThemeColourScheme(String spaceKey)
Specified by:
getSpaceThemeColourScheme in interface ColourSchemeManager

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 interface ColourSchemeManager
Returns:
a ColourScheme that does not have any backing ColourSchemes.

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 interface ColourSchemeManager

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 interface ColourSchemeManager
Returns:
a ColourScheme that does not have any backing ColourSchemes.

getGlobalColourSchemeCustom

public ColourScheme getGlobalColourSchemeCustom()
Description copied from interface: ColourSchemeManager
Retrieve the global colour scheme for editing - with system defaults.

Specified by:
getGlobalColourSchemeCustom in interface ColourSchemeManager

resetColourScheme

public void resetColourScheme(Space space)
Specified by:
resetColourScheme in interface ColourSchemeManager

saveSpaceColourScheme

public void saveSpaceColourScheme(Space space,
                                  BaseColourScheme colourScheme)
Specified by:
saveSpaceColourScheme in interface ColourSchemeManager

saveGlobalColourScheme

public void saveGlobalColourScheme(BaseColourScheme colourScheme)
Specified by:
saveGlobalColourScheme in interface ColourSchemeManager

setColourSchemeSetting

public void setColourSchemeSetting(Space space,
                                   String value)
Specified by:
setColourSchemeSetting in interface ColourSchemeManager

getColourSchemeSetting

public String getColourSchemeSetting(Space space)
Specified by:
getColourSchemeSetting in interface ColourSchemeManager

getSettingsManager

public SettingsManager getSettingsManager()

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setEventManager

public void setEventManager(com.atlassian.event.EventManager eventManager)


Copyright © 2003–2015 Atlassian. All rights reserved.