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)DefaultCssResourceCounterManager(com.atlassian.bandana.BandanaManager bandanaManager, TenantRegistry ignored)Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGlobalCssResourceCounter()Get the resource counter for the global CSS file.intgetSpaceCssResourceCounter(String spaceKey)Get the resource counter for a particular space's CSS file.voidinvalidateGlobalCssResourceCounter()Cause the manager to start sending out new values for the global CSS resource counter.voidinvalidateSpaceCssResourceCounter(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)
- Since:
- 8.6
-
DefaultCssResourceCounterManager
@Deprecated(forRemoval=true) public DefaultCssResourceCounterManager(com.atlassian.bandana.BandanaManager bandanaManager, TenantRegistry ignored)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
-
Method Detail
-
invalidateGlobalCssResourceCounter
public void invalidateGlobalCssResourceCounter()
Description copied from interface:CssResourceCounterManagerCause the manager to start sending out new values for the global CSS resource counter.- Specified by:
invalidateGlobalCssResourceCounterin interfaceCssResourceCounterManager
-
invalidateSpaceCssResourceCounter
public void invalidateSpaceCssResourceCounter(String spaceKey)
Description copied from interface:CssResourceCounterManagerCause the manager to start sending out new values for the space's CSS resource counter.- Specified by:
invalidateSpaceCssResourceCounterin interfaceCssResourceCounterManager- Parameters:
spaceKey- the key of the space that has had its CSS changed
-
getGlobalCssResourceCounter
public int getGlobalCssResourceCounter()
Description copied from interface:CssResourceCounterManagerGet 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:
getGlobalCssResourceCounterin interfaceCssResourceCounterManager
-
getSpaceCssResourceCounter
public int getSpaceCssResourceCounter(String spaceKey)
Description copied from interface:CssResourceCounterManagerGet 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:
getSpaceCssResourceCounterin interfaceCssResourceCounterManager- Parameters:
spaceKey- the key of the space we're viewing the CSS for, or null for the global CSS.
-
-