Package com.atlassian.confluence.themes
Class DefaultStylesheetManager
java.lang.Object
com.atlassian.confluence.themes.DefaultStylesheetManager
- All Implemented Interfaces:
StylesheetManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlobalStylesheet(String style) Adds a global stylesheet to customize the look and feel of ConfluencevoidaddSpaceStylesheet(String spaceKey, String style) Adds a space stylesheet to customize the look and feel of a single space within Confluence.Retrieve the custom global stylesheetgetSpaceStylesheet(String spaceKey) Retrieve the custom stylesheet that has been stored against a space.getSpaceStylesheet(String spaceKey, boolean shouldLookGlobal) Retrieve the custom stylesheet that has been stored against a space.voidremoves the global Confluence stylesheetvoidremoveSpaceStylesheet(String spaceKey) Removes a space specific stylesheetvoidsetEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) voidsetPluginSettingsFactory(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory) voidsetSpaceManager(SpaceManager spaceManager) voidsetThemeManager(ThemeManager themeManager)
-
Constructor Details
-
DefaultStylesheetManager
public DefaultStylesheetManager()
-
-
Method Details
-
getSpaceStylesheet
Description copied from interface:StylesheetManagerRetrieve 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:
getSpaceStylesheetin interfaceStylesheetManager- 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
Description copied from interface:StylesheetManagerRetrieve the custom stylesheet that has been stored against a space.- Specified by:
getSpaceStylesheetin interfaceStylesheetManager- Parameters:
spaceKey- The key of the Confluence space for which you want to retrieve the styleshouldLookGlobal- 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
Description copied from interface:StylesheetManagerRetrieve the custom global stylesheet- Specified by:
getGlobalStylesheetin interfaceStylesheetManager- Returns:
- style A String containing the css styles for Confluence
-
addGlobalStylesheet
Description copied from interface:StylesheetManagerAdds a global stylesheet to customize the look and feel of Confluence- Specified by:
addGlobalStylesheetin interfaceStylesheetManager- Parameters:
style- A String representing the css styles for Confluence
-
addSpaceStylesheet
Description copied from interface:StylesheetManagerAdds a space stylesheet to customize the look and feel of a single space within Confluence.- Specified by:
addSpaceStylesheetin interfaceStylesheetManager- Parameters:
spaceKey- The key of the Confluence space to which the syle should be appliedstyle- A String representing the css styles for the space
-
removeSpaceStylesheet
Description copied from interface:StylesheetManagerRemoves a space specific stylesheet- Specified by:
removeSpaceStylesheetin interfaceStylesheetManager- Parameters:
spaceKey- The key of the Confluence space from which to remove the style
-
removeGlobalStylesheet
public void removeGlobalStylesheet()Description copied from interface:StylesheetManagerremoves the global Confluence stylesheet- Specified by:
removeGlobalStylesheetin interfaceStylesheetManager
-
setThemeManager
-
setPluginSettingsFactory
public void setPluginSettingsFactory(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory) -
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) - Since:
- 8.9
-
setSpaceManager
-