com.atlassian.confluence.plugin.webresource
Interface ConfluenceWebResourceManager

All Superinterfaces:
com.atlassian.plugin.webresource.WebResourceManager
All Known Implementing Classes:
DefaultConfluenceWebResourceManager

public interface ConfluenceWebResourceManager
extends com.atlassian.plugin.webresource.WebResourceManager


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.plugin.webresource.WebResourceManager
com.atlassian.plugin.webresource.WebResourceManager.IncludeMode
 
Field Summary
 
Fields inherited from interface com.atlassian.plugin.webresource.WebResourceManager
DELAYED_INCLUDE_MODE, INLINE_INCLUDE_MODE
 
Method Summary
 String getGlobalCssResourcePrefix()
          Get the resource prefix for the global CSS file.
 String getResourceContent(String resourceName)
          Gets the content of a resource specified.
 String getResources()
          Returns the HTML output of WebResourceManager.includeResources(java.io.Writer), which includes references to all the delayed Javascript and CSS resources requested by WebResourceManager.requireResource(String).
 String getSpaceCssPrefix(String spaceKey)
          Get the resource prefix for a particular space's CSS file.
 void invalidateGlobalCss()
          Deprecated. since 2.8 Use CssResourceCounterManager.invalidateGlobalCssResourceCounter() instead.
 void invalidateSpaceCss(String spaceKey)
          Deprecated. since 2.8 Use CssResourceCounterManager.invalidateGlobalCssResourceCounter() instead.
 void requireResourcesForContext(String context)
          Requires all resources which have the given context specified in their descriptor
 
Methods inherited from interface com.atlassian.plugin.webresource.WebResourceManager
getStaticPluginResource, getStaticPluginResource, getStaticPluginResourcePrefix, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, requireResource, requireResource, setIncludeMode
 

Method Detail

getResources

String getResources()
Returns the HTML output of WebResourceManager.includeResources(java.io.Writer), which includes references to all the delayed Javascript and CSS resources requested by WebResourceManager.requireResource(String).


getGlobalCssResourcePrefix

String getGlobalCssResourcePrefix()
Get the resource prefix for the global CSS file. This prefix should be updated every time there is a change to the global theme or colour scheme.


getSpaceCssPrefix

String getSpaceCssPrefix(String spaceKey)
Get the resource prefix for a particular space's CSS file. This prefix should be updated every time there is a change to the space's theme or colour scheme.

Parameters:
spaceKey - the key of the space we're viewing the CSS for, or null for the global CSS.

getResourceContent

String getResourceContent(String resourceName)
Gets the content of a resource specified.

Parameters:
resourceName - The fully qualified plugin name and resource to include (eg confluence.web.resources:legacy-styles)
Returns:
the content of the resource

requireResourcesForContext

void requireResourcesForContext(String context)
Requires all resources which have the given context specified in their descriptor

Parameters:
context - The name of the context for which you want to require resources (eg "confluence.main")

invalidateGlobalCss

void invalidateGlobalCss()
Deprecated. since 2.8 Use CssResourceCounterManager.invalidateGlobalCssResourceCounter() instead.


invalidateSpaceCss

void invalidateSpaceCss(String spaceKey)
Deprecated. since 2.8 Use CssResourceCounterManager.invalidateGlobalCssResourceCounter() instead.



Confluence is developed by Atlassian Pty Ltd.