Interface ConfluenceWebResourceService
- All Known Implementing Classes:
DefaultConfluenceWebResourceService
public interface ConfluenceWebResourceService
Provides services related to writing Confluence html resource tags.
This service is meant to replace
ConfluenceWebResourceManager
that implements WebResourceManager
interface.
- Since:
- 5.5
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Style of a page. -
Method Summary
Modifier and TypeMethodDescriptioncalculateConfluenceResourceUris
(@Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey) Computes the resource uris required by the given space.void
writeConfluenceResourceTags
(@NonNull Writer writer, @Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey) Write all html resource tags to the given writer.
-
Method Details
-
writeConfluenceResourceTags
void writeConfluenceResourceTags(@NonNull Writer writer, @Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey) 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.
- Parameters:
writer
- writer to write the tags tostyle
- style to apply if anyspaceKey
- current space if any
-
calculateConfluenceResourceUris
Map<ResourceType,Iterable<String>> calculateConfluenceResourceUris(@Nullable ConfluenceWebResourceService.Style style, @Nullable String spaceKey) 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.- Parameters:
style
- style to apply, ornull
if not displaying an admin page.spaceKey
- current space ornull
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.
- Since:
- 7.0.1
-