com.atlassian.confluence.themes
Interface StylesheetManager

All Known Implementing Classes:
DefaultStylesheetManager

public interface StylesheetManager


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
 

Method Detail

getSpaceStylesheet

java.lang.String getSpaceStylesheet(java.lang.String spaceKey)
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.

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

java.lang.String getSpaceStylesheet(java.lang.String spaceKey,
                                    boolean shouldLookGlobal)
Retrieve the custom stylesheet that has been stored against a space.

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

java.lang.String getGlobalStylesheet()
Retrieve the custom global stylesheet

Returns:
style A String containing the css styles for Confluence

addGlobalStylesheet

void addGlobalStylesheet(java.lang.String style)
Adds a global stylesheet to customize the look and feel of Confluence

Parameters:
style - A String representing the css styles for Confluence

addSpaceStylesheet

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.

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

void removeSpaceStylesheet(java.lang.String spaceKey)
Removes a space specific stylesheet

Parameters:
spaceKey - The key of the Confluence space from which to remove the style

removeGlobalStylesheet

void removeGlobalStylesheet()
removes the global Confluence stylesheet



Copyright © 2003-2010 Atlassian. All Rights Reserved.