Class DefaultConfluenceWebResourceService
- java.lang.Object
-
- com.atlassian.confluence.plugin.webresource.DefaultConfluenceWebResourceService
-
- All Implemented Interfaces:
ConfluenceWebResourceService
public class DefaultConfluenceWebResourceService extends Object implements ConfluenceWebResourceService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.plugin.webresource.ConfluenceWebResourceService
ConfluenceWebResourceService.Style
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Predicate<com.atlassian.webresource.api.assembler.WebResource>
JS_RESOURCE_PREDICATE
-
Constructor Summary
Constructors Constructor Description DefaultConfluenceWebResourceService(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, CssResourceCounterManager cssResourceCounterManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, StylesheetManager stylesheetManager, ThemeManager themeManager, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration, DarkFeaturesManager darkFeaturesManager, ColourSchemeManager colourSchemeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<ResourceType,Iterable<String>>
computeConfluenceResourceUris(com.atlassian.fugue.Option<ConfluenceWebResourceService.Style> styleOpt, com.atlassian.fugue.Option<String> spaceKeyOpt)
Deprecated.since 7.0.1.void
writeConfluenceResourceTags(@NonNull Writer writer, @Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey)
Write all html resource tags to the given writer.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.plugin.webresource.ConfluenceWebResourceService
calculateConfluenceResourceUris
-
-
-
-
Constructor Detail
-
DefaultConfluenceWebResourceService
public DefaultConfluenceWebResourceService(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, CssResourceCounterManager cssResourceCounterManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, StylesheetManager stylesheetManager, ThemeManager themeManager, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration, DarkFeaturesManager darkFeaturesManager, ColourSchemeManager colourSchemeManager)
- Since:
- 7.5
-
-
Method Detail
-
writeConfluenceResourceTags
public void writeConfluenceResourceTags(@NonNull Writer writer, @Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey)
Description copied from interface:ConfluenceWebResourceService
Write all html resource tags to the given writer.Internally Web Resources module is used to output most of the resources, with some Confluence theme specific resources added to the mix.
- Specified by:
writeConfluenceResourceTags
in interfaceConfluenceWebResourceService
- Parameters:
writer
- writer to write the tags tostyle
- style to apply if anyspaceKey
- current space if any
-
computeConfluenceResourceUris
@Deprecated public Map<ResourceType,Iterable<String>> computeConfluenceResourceUris(com.atlassian.fugue.Option<ConfluenceWebResourceService.Style> styleOpt, com.atlassian.fugue.Option<String> spaceKeyOpt)
Deprecated.Description copied from interface:ConfluenceWebResourceService
Computes the resource uris required by the given space. If null is given for spaceKey, then this method will not take space styles into account.- Specified by:
computeConfluenceResourceUris
in interfaceConfluenceWebResourceService
- Parameters:
styleOpt
- style to apply, or none() if not displaying an admin page.spaceKeyOpt
- current space or none() if not displaying in the context of a space- Returns:
- a map of resource types to the list of uris of that type. The list of uris should be in a deterministic, and correct order.
-
-