com.atlassian.confluence.themes
Class DefaultColourSchemeManager

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

public class DefaultColourSchemeManager
extends java.lang.Object
implements ColourSchemeManager


Constructor Summary
DefaultColourSchemeManager()
           
 
Method Summary
 java.lang.String getColourSchemeSetting(Space space)
           
 ColourScheme getGlobalColourScheme()
          Method returns a ChainedColour Scheme.
 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(java.lang.String spaceKey)
          Method returns a ChainedColour Scheme for a specific space.
 BaseColourScheme getSpaceColourSchemeIsolated(java.lang.String spaceKey)
          Retrieve the isolated colour scheme for a space for editing - no global defaults.
 ColourScheme getSpaceThemeColourScheme(java.lang.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, java.lang.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(java.lang.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(java.lang.String spaceKey)
Specified by:
getSpaceThemeColourScheme in interface ColourSchemeManager

getSpaceColourSchemeIsolated

public BaseColourScheme getSpaceColourSchemeIsolated(java.lang.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.

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.

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,
                                   java.lang.String value)
Specified by:
setColourSchemeSetting in interface ColourSchemeManager

getColourSchemeSetting

public java.lang.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-2014 Atlassian. All Rights Reserved.