public class DefaultConfluenceWebResourceService extends Object implements ConfluenceWebResourceService
ConfluenceWebResourceService.Style
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<com.atlassian.webresource.api.assembler.WebResource> |
JS_RESOURCE_PREDICATE |
Constructor and 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,
com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManagerSupplier,
ColourSchemeManager colourSchemeManager) |
Modifier and Type | Method and Description |
---|---|
Map<ResourceType,Iterable<String>> |
computeConfluenceResourceUris(com.atlassian.fugue.Option<ConfluenceWebResourceService.Style> style,
com.atlassian.fugue.Option<String> spaceKeyOpt)
Computes the resource uris required by the given space.
|
ColourSchemeManager |
getColourSchemeManager() |
ThemeManager |
getThemeManager() |
com.atlassian.plugin.webresource.WebResourceUrlProvider |
getWebResourceUrlProvider() |
void |
writeConfluenceResourceTags(Writer writer,
ConfluenceWebResourceService.Style style,
String spaceKey)
Write all html resource tags to the given writer.
|
public static final com.google.common.base.Predicate<com.atlassian.webresource.api.assembler.WebResource> JS_RESOURCE_PREDICATE
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, com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManagerSupplier, ColourSchemeManager colourSchemeManager)
public ColourSchemeManager getColourSchemeManager()
public com.atlassian.plugin.webresource.WebResourceUrlProvider getWebResourceUrlProvider()
public ThemeManager getThemeManager()
public void writeConfluenceResourceTags(@Nonnull Writer writer, @Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey)
ConfluenceWebResourceService
Internally Web Resources module is used to output most of the resources, with some Confluence theme specific resources added to the mix.
writeConfluenceResourceTags
in interface ConfluenceWebResourceService
writer
- writer to write the tags tostyle
- style to apply if anyspaceKey
- current space if anypublic Map<ResourceType,Iterable<String>> computeConfluenceResourceUris(com.atlassian.fugue.Option<ConfluenceWebResourceService.Style> style, com.atlassian.fugue.Option<String> spaceKeyOpt)
ConfluenceWebResourceService
computeConfluenceResourceUris
in interface ConfluenceWebResourceService
style
- style to apply, or none() if not displaying an admin page.spaceKeyOpt
- current space or none() if not displaying in the context of a spaceCopyright © 2003–2015 Atlassian. All rights reserved.