Class WebResourceDependencies.WebResourceDependenciesBuilder
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.webresource.WebResourceDependencies.WebResourceDependenciesBuilder
-
- All Implemented Interfaces:
WebResourcesBuilder
- Enclosing class:
- WebResourceDependencies
public static class WebResourceDependencies.WebResourceDependenciesBuilder extends Object implements WebResourcesBuilder
Builder forWebResourceDependencies
- Since:
- 5.9
-
-
Method Summary
-
-
-
Method Detail
-
superbatch
public WebResourceDependencies.WebResourceDependenciesBuilder superbatch(SuperBatchWebResources superbatch)
-
keys
public WebResourceDependencies.WebResourceDependenciesBuilder keys(Iterable<String> keys)
-
uris
public WebResourceDependencies.WebResourceDependenciesBuilder uris(ResourceType type, List<URI> uris)
Description copied from interface:WebResourcesBuilder
Adds, or if the resource type is already added, replaces the existing uris for the given resource type with the new uris given.- Specified by:
uris
in interfaceWebResourcesBuilder
-
uris
public WebResourceDependencies.WebResourceDependenciesBuilder uris(Map<ResourceType,List<URI>> uris)
Description copied from interface:WebResourcesBuilder
Replaces the existing uris map with the given map. The old map should be abandoned, and should not be used in the construcvtion of the final web resources entries- Specified by:
uris
in interfaceWebResourcesBuilder
-
addCollapsedUris
public WebResourceDependencies.WebResourceDependenciesBuilder addCollapsedUris(ResourceType type)
Description copied from interface:WebResourcesBuilder
The builder should have a collapsed uri list for the given resource type.- Specified by:
addCollapsedUris
in interfaceWebResourcesBuilder
-
contexts
public WebResourceDependencies.WebResourceDependenciesBuilder contexts(Iterable<String> contexts)
-
tag
public WebResourceDependencies.WebResourceDependenciesBuilder tag(ResourceType type, HtmlString htmlString)
Description copied from interface:WebResourcesBuilder
Add, or if the resource type is already added, replaces the existing tag with the given tag for the given resource type.- Specified by:
tag
in interfaceWebResourcesBuilder
-
tag
public WebResourceDependencies.WebResourceDependenciesBuilder tag(Map<ResourceType,HtmlString> tags)
Description copied from interface:WebResourcesBuilder
Replaces the existing tags map with the given map. The old map should be abandoned, and should not be used in the construcvtion of the final web resources entries.- Specified by:
tag
in interfaceWebResourcesBuilder
-
addCollapsedTag
public WebResourceDependencies.WebResourceDependenciesBuilder addCollapsedTag(ResourceType tagType)
Description copied from interface:WebResourcesBuilder
The builder should have a collapsed tag entry for the given resource type.- Specified by:
addCollapsedTag
in interfaceWebResourcesBuilder
-
build
public WebResourceDependencies build()
-
-