Class WebResourceDependencies
java.lang.Object
com.atlassian.confluence.api.model.content.webresource.WebResourceDependencies
A model for web resources that a
FormattedBody
's various ContentRepresentation
might require to render properly on the client.- Since:
- 5.9
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Holds the string representable of the expandable fields ofWebResourceDependencies
.static class
Builder forWebResourceDependencies
-
Constructor Summary
ConstructorDescriptionWebResourceDependencies
(List<String> keys, List<String> contexts, Map<ResourceType, List<URI>> uris, Map<ResourceType, HtmlString> tags, SuperBatchWebResources superbatch) -
Method Summary
-
Constructor Details
-
WebResourceDependencies
public WebResourceDependencies(List<String> keys, List<String> contexts, Map<ResourceType, List<URI>> uris, Map<ResourceType, HtmlString> tags, SuperBatchWebResources superbatch)
-
-
Method Details
-
builder
-
getContexts
- Returns:
- A list of web resource contexts. These contexts are explicitly requested, or implicitly included for the
content under question. It does _not_ include transitives. Suitable for use by
WRM.requireContext()
via client side javascript.
-
getKeys
- Returns:
- A list of web resource keys. These keys are explicitly requested by the rendering of the content under question.
It does _not_ include dependencies that are not explicitly requested. Suitable for use by
WRM.requireResoure()
via client side javascript.
-
getUris
- Returns:
- A map of UIRs keyed by the type of URI. Does not include
ResourceType.DATA
, as that type does not have a uri associated with it.
-
getTags
- Returns:
- A map of the raw tags keyed by the type of the resource.
-
getSuperbatch
- Returns:
- a representation of the superbatch.
-