com.atlassian.confluence.themes
Class DefaultStylesheetManager

java.lang.Object
  extended by com.atlassian.confluence.themes.DefaultStylesheetManager
All Implemented Interfaces:
StylesheetManager

public class DefaultStylesheetManager
extends java.lang.Object
implements StylesheetManager


Constructor Summary
DefaultStylesheetManager()
           
 
Method Summary
 void addGlobalStylesheet(java.lang.String style)
          Adds a global stylesheet to customize the look and feel of Confluence
 void addSpaceStylesheet(java.lang.String spaceKey, java.lang.String style)
          Adds a space stylesheet to customize the look and feel of a single space within Confluence.
 java.lang.String getGlobalStylesheet()
          Retrieve the custom global stylesheet
 java.lang.String getSpaceStylesheet(java.lang.String spaceKey)
          Retrieve the custom stylesheet that has been stored against a space.
 java.lang.String getSpaceStylesheet(java.lang.String spaceKey, boolean shouldLookGlobal)
          Retrieve the custom stylesheet that has been stored against a space.
 void removeGlobalStylesheet()
          removes the global Confluence stylesheet
 void removeSpaceStylesheet(java.lang.String spaceKey)
          Removes a space specific stylesheet
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setEventManager(com.atlassian.event.EventManager eventManager)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 void setThemeManager(ThemeManager themeManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStylesheetManager

public DefaultStylesheetManager()
Method Detail

getSpaceStylesheet

public java.lang.String getSpaceStylesheet(java.lang.String spaceKey)
Description copied from interface: StylesheetManager
Retrieve the custom stylesheet that has been stored against a space.

If no stylesheet is stored against the space, the global stylesheet will be applied if one exists. However, if a space theme is set, the global styles will be ignored.

Specified by:
getSpaceStylesheet in interface StylesheetManager
Parameters:
spaceKey - The key of the Confluence space for which you want to retrieve the style
Returns:
A String containing the css styles for the space

getSpaceStylesheet

public java.lang.String getSpaceStylesheet(java.lang.String spaceKey,
                                           boolean shouldLookGlobal)
Description copied from interface: StylesheetManager
Retrieve the custom stylesheet that has been stored against a space.

Specified by:
getSpaceStylesheet in interface StylesheetManager
Parameters:
spaceKey - The key of the Confluence space for which you want to retrieve the style
shouldLookGlobal - determines whether it should look for a global style if no space style exists
Returns:
A String containing the css styles for the space

getGlobalStylesheet

public java.lang.String getGlobalStylesheet()
Description copied from interface: StylesheetManager
Retrieve the custom global stylesheet

Specified by:
getGlobalStylesheet in interface StylesheetManager
Returns:
style A String containing the css styles for Confluence

addGlobalStylesheet

public void addGlobalStylesheet(java.lang.String style)
Description copied from interface: StylesheetManager
Adds a global stylesheet to customize the look and feel of Confluence

Specified by:
addGlobalStylesheet in interface StylesheetManager
Parameters:
style - A String representing the css styles for Confluence

addSpaceStylesheet

public void addSpaceStylesheet(java.lang.String spaceKey,
                               java.lang.String style)
Description copied from interface: StylesheetManager
Adds a space stylesheet to customize the look and feel of a single space within Confluence.

Specified by:
addSpaceStylesheet in interface StylesheetManager
Parameters:
spaceKey - The key of the Confluence space to which the syle should be applied
style - A String representing the css styles for the space

removeSpaceStylesheet

public void removeSpaceStylesheet(java.lang.String spaceKey)
Description copied from interface: StylesheetManager
Removes a space specific stylesheet

Specified by:
removeSpaceStylesheet in interface StylesheetManager
Parameters:
spaceKey - The key of the Confluence space from which to remove the style

removeGlobalStylesheet

public void removeGlobalStylesheet()
Description copied from interface: StylesheetManager
removes the global Confluence stylesheet

Specified by:
removeGlobalStylesheet in interface StylesheetManager

setThemeManager

public void setThemeManager(ThemeManager themeManager)

setBandanaManager

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

setEventManager

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

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.