Class SetupColourSchemeManager
- java.lang.Object
-
- com.atlassian.confluence.impl.themes.SetupColourSchemeManager
-
- All Implemented Interfaces:
ColourSchemeManager
public class SetupColourSchemeManager extends Object implements ColourSchemeManager
Used in the setup context only as a way of retrieving the AUI default colour scheme and nothing more.- Since:
- 7.0.1
-
-
Constructor Summary
Constructors Constructor Description SetupColourSchemeManager()
-
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()
Retrieve the global colour scheme - for display, complete with global defaults.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.ColourScheme
getSpaceColourScheme(Space space)
Retrieve the colour scheme for a space - for display, complete with global defaults.ColourScheme
getSpaceColourScheme(String string)
Retrieve the colour scheme for a space - for display, complete with global defaults.ColourScheme
getSpaceColourSchemeCustom(String spaceKey)
Retrieve the custom colour scheme for a space - for editing, complete with global defaults and system defaults.BaseColourScheme
getSpaceColourSchemeIsolated(String string)
Retrieve the isolated colour scheme for a space for editing - no global defaults.ColourScheme
getSpaceThemeColourScheme(String string)
ColourScheme
getThemeColourScheme()
void
resetColourScheme(Space space)
void
saveGlobalColourScheme(BaseColourScheme baseColourScheme)
void
saveSpaceColourScheme(Space space, BaseColourScheme baseColourScheme)
void
setColourSchemeSetting(Space space, String string)
-
-
-
Method Detail
-
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 string)
Description copied from interface:ColourSchemeManager
Retrieve the colour scheme for a space - for display, complete with global defaults.For editing, use
ColourSchemeManager.getSpaceColourSchemeCustom(String)
.- Specified by:
getSpaceColourScheme
in interfaceColourSchemeManager
-
getGlobalColourScheme
public ColourScheme getGlobalColourScheme()
Description copied from interface:ColourSchemeManager
Retrieve the global colour scheme - for display, complete with global defaults.For editing, use
ColourSchemeManager.getGlobalColourSchemeCustom()
.- Specified by:
getGlobalColourScheme
in interfaceColourSchemeManager
-
getThemeColourScheme
public ColourScheme getThemeColourScheme()
- Specified by:
getThemeColourScheme
in interfaceColourSchemeManager
-
getSpaceColourSchemeIsolated
public BaseColourScheme getSpaceColourSchemeIsolated(String string)
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.
-
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.
-
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
-
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 baseColourScheme)
- Specified by:
saveSpaceColourScheme
in interfaceColourSchemeManager
-
saveGlobalColourScheme
public void saveGlobalColourScheme(BaseColourScheme baseColourScheme)
- Specified by:
saveGlobalColourScheme
in interfaceColourSchemeManager
-
getSpaceThemeColourScheme
public ColourScheme getSpaceThemeColourScheme(String string)
- Specified by:
getSpaceThemeColourScheme
in interfaceColourSchemeManager
-
setColourSchemeSetting
public void setColourSchemeSetting(Space space, String string)
- Specified by:
setColourSchemeSetting
in interfaceColourSchemeManager
-
getColourSchemeSetting
public String getColourSchemeSetting(Space space)
- Specified by:
getColourSchemeSetting
in interfaceColourSchemeManager
-
-