Class DefaultCssResourceCounterManager
- java.lang.Object
-
- com.atlassian.confluence.plugin.webresource.DefaultCssResourceCounterManager
-
- All Implemented Interfaces:
CssResourceCounterManager
public class DefaultCssResourceCounterManager extends Object implements CssResourceCounterManager
-
-
Constructor Summary
Constructors Constructor Description DefaultCssResourceCounterManager(com.atlassian.bandana.BandanaManager bandanaManager, TenantRegistry tenantRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGlobalCssResourceCounter()
Get the resource counter for the global CSS file.int
getSpaceCssResourceCounter(String spaceKey)
Get the resource counter for a particular space's CSS file.void
invalidateGlobalCssResourceCounter()
Cause the manager to start sending out new values for the global CSS resource counter.void
invalidateSpaceCssResourceCounter(String spaceKey)
Cause the manager to start sending out new values for the space's CSS resource counter.
-
-
-
Constructor Detail
-
DefaultCssResourceCounterManager
public DefaultCssResourceCounterManager(com.atlassian.bandana.BandanaManager bandanaManager, TenantRegistry tenantRegistry)
-
-
Method Detail
-
invalidateGlobalCssResourceCounter
public void invalidateGlobalCssResourceCounter()
Description copied from interface:CssResourceCounterManager
Cause the manager to start sending out new values for the global CSS resource counter.- Specified by:
invalidateGlobalCssResourceCounter
in interfaceCssResourceCounterManager
-
invalidateSpaceCssResourceCounter
public void invalidateSpaceCssResourceCounter(String spaceKey)
Description copied from interface:CssResourceCounterManager
Cause the manager to start sending out new values for the space's CSS resource counter.- Specified by:
invalidateSpaceCssResourceCounter
in interfaceCssResourceCounterManager
- Parameters:
spaceKey
- the key of the space that has had its CSS changed
-
getGlobalCssResourceCounter
public int getGlobalCssResourceCounter()
Description copied from interface:CssResourceCounterManager
Get the resource counter for the global CSS file. This counter should be updated every time there is a change to the global theme or colour scheme.- Specified by:
getGlobalCssResourceCounter
in interfaceCssResourceCounterManager
-
getSpaceCssResourceCounter
public int getSpaceCssResourceCounter(String spaceKey)
Description copied from interface:CssResourceCounterManager
Get the resource counter for a particular space's CSS file. This counter should be updated every time there is a change to the space's theme or colour scheme.- Specified by:
getSpaceCssResourceCounter
in interfaceCssResourceCounterManager
- Parameters:
spaceKey
- the key of the space we're viewing the CSS for, or null for the global CSS.
-
-