com.atlassian.confluence.plugin.webresource
Class DefaultConfluenceWebResourceManager

java.lang.Object
  extended by com.atlassian.plugin.webresource.WebResourceManagerImpl
      extended by com.atlassian.confluence.plugin.webresource.DefaultConfluenceWebResourceManager
All Implemented Interfaces:
ConfluenceWebResourceManager, com.atlassian.plugin.webresource.WebResourceManager

public class DefaultConfluenceWebResourceManager
extends com.atlassian.plugin.webresource.WebResourceManagerImpl
implements ConfluenceWebResourceManager


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
 
Constructor Summary
DefaultConfluenceWebResourceManager(com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration)
           
 
Method Summary
 java.lang.String getGlobalCssResourcePrefix()
          Get the resource prefix for the global CSS file.
 java.lang.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).
 java.lang.String getSpaceCssPrefix(java.lang.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(java.lang.String spaceKey)
          Deprecated. since 2.8 Use CssResourceCounterManager.invalidateSpaceCssResourceCounter(String) ()} instead.
 void requireResource(java.lang.String resourceName)
          Wraps the parent method to provide logging.
 void setCssResourceCounterManager(CssResourceCounterManager cssResourceCounterManager)
           
 
Methods inherited from class com.atlassian.plugin.webresource.WebResourceManagerImpl
getStaticPluginResource, getStaticPluginResource, getStaticPluginResourcePrefix, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, requireResource, setIncludeMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.plugin.webresource.WebResourceManager
getStaticPluginResource, getStaticPluginResource, getStaticPluginResourcePrefix, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, requireResource, setIncludeMode
 

Constructor Detail

DefaultConfluenceWebResourceManager

public DefaultConfluenceWebResourceManager(com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration)
Method Detail

getResources

public java.lang.String getResources()
Description copied from interface: ConfluenceWebResourceManager
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).

Specified by:
getResources in interface ConfluenceWebResourceManager

requireResource

public void requireResource(java.lang.String resourceName)
Wraps the parent method to provide logging.

Specified by:
requireResource in interface com.atlassian.plugin.webresource.WebResourceManager
Overrides:
requireResource in class com.atlassian.plugin.webresource.WebResourceManagerImpl

getGlobalCssResourcePrefix

public java.lang.String getGlobalCssResourcePrefix()
Description copied from interface: ConfluenceWebResourceManager
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.

Specified by:
getGlobalCssResourcePrefix in interface ConfluenceWebResourceManager

getSpaceCssPrefix

public java.lang.String getSpaceCssPrefix(java.lang.String spaceKey)
Description copied from interface: ConfluenceWebResourceManager
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.

Specified by:
getSpaceCssPrefix in interface ConfluenceWebResourceManager
Parameters:
spaceKey - the key of the space we're viewing the CSS for, or null for the global CSS.

invalidateGlobalCss

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

Specified by:
invalidateGlobalCss in interface ConfluenceWebResourceManager

invalidateSpaceCss

public void invalidateSpaceCss(java.lang.String spaceKey)
Deprecated. since 2.8 Use CssResourceCounterManager.invalidateSpaceCssResourceCounter(String) ()} instead.

Specified by:
invalidateSpaceCss in interface ConfluenceWebResourceManager

setCssResourceCounterManager

public void setCssResourceCounterManager(CssResourceCounterManager cssResourceCounterManager)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.