public interface ConfluenceWebResourceService
This service is meant to replace
ConfluenceWebResourceManager
that implements the now deprecated
WebResourceManager
interface.
Modifier and Type | Interface and Description |
---|---|
static class |
ConfluenceWebResourceService.Style
Style of a page.
|
Modifier and Type | Method and Description |
---|---|
default Map<ResourceType,Iterable<String>> |
calculateConfluenceResourceUris(@Nullable ConfluenceWebResourceService.Style style,
@Nullable String spaceKey)
Computes the resource uris required by the given space.
|
Map<ResourceType,Iterable<String>> |
computeConfluenceResourceUris(com.atlassian.fugue.Option<ConfluenceWebResourceService.Style> style,
com.atlassian.fugue.Option<String> spaceKey)
Deprecated.
since 7.0.1. Use
calculateConfluenceResourceUris(Style, String) |
void |
writeConfluenceResourceTags(@NonNull Writer writer,
@Nullable ConfluenceWebResourceService.Style style,
@Nullable String spaceKey)
Write all html resource tags to the given writer.
|
void writeConfluenceResourceTags(@NonNull Writer writer, @Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey)
Internally Web Resources module is used to output most of the resources, with some Confluence theme specific resources added to the mix.
writer
- writer to write the tags tostyle
- style to apply if anyspaceKey
- current space if any@Deprecated Map<ResourceType,Iterable<String>> computeConfluenceResourceUris(com.atlassian.fugue.Option<ConfluenceWebResourceService.Style> style, com.atlassian.fugue.Option<String> spaceKey)
calculateConfluenceResourceUris(Style, String)
style
- style to apply, or none() if not displaying an admin page.spaceKey
- current space or none() if not displaying in the context of a spacedefault Map<ResourceType,Iterable<String>> calculateConfluenceResourceUris(@Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey)
style
- style to apply, or null
if not displaying an admin page.spaceKey
- current space or null
if not displaying in the context of a spaceCopyright © 2003–2021 Atlassian. All rights reserved.