com.atlassian.confluence.plugin.webresource.ConfluenceWebResourceManager |
Known Indirect Subclasses |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.plugin.webresource.WebResourceManager
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delegates to getCssResources(null)
| |||||||||||
Returns the HTML output of
includeResources(Writer, UrlMode, WebResourceFilter) , which includes
references to all the delayed CSS resources requested by requireResource(String) . | |||||||||||
Get the resource prefix for the global CSS file.
| |||||||||||
Returns the HTML output of
includeResources(Writer, UrlMode, WebResourceFilter) , which includes
references to all the delayed Javascript resources requested by requireResource(String) . | |||||||||||
Returns the map of key-value pairs added via
putMetadata(String, String) . | |||||||||||
Gets the content of a resource specified.
| |||||||||||
Get the resource tags that would be necessary for the supplied List of extra contexts.
| |||||||||||
Returns the HTML output of
includeResources(java.io.Writer) , which includes references to
all the delayed Javascript and CSS resources requested by requireResource(String) . | |||||||||||
Get the resource prefix for a particular space's CSS file.
| |||||||||||
Returns the script tags for the theme specific javascript resources.
| |||||||||||
Adds key-value String pairs to a map to be rendered later.
| |||||||||||
Requires all resources which have the given context specified in their descriptor
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.plugin.webresource.WebResourceManager
|
Returns the HTML output of includeResources(Writer, UrlMode, WebResourceFilter)
, which includes
references to all the delayed CSS resources requested by requireResource(String)
.
This method should only be called once for each request. Multiple calls to this method
will result with null
being returned.
This is a convenience method for velocity templates and is equivalent to calling includeResources with
spaceKey | spaceKey if null global theme is used.
AUTO and CssWebResource.
|
---|
spaceKey | space key to allow custom styling. Can be null to use global configured theme. |
---|
Get the resource prefix for the global CSS file. This prefix should be updated every time there is a change to the global theme or colour scheme.
Returns the HTML output of includeResources(Writer, UrlMode, WebResourceFilter)
, which includes
references to all the delayed Javascript resources requested by requireResource(String)
.
This method should only be called once for each request. Multiple calls to this method
will result with null
being returned.
This is a convenience method for velocity templates and is equivalent to calling includeResources with
AUTO
and JavascriptWebResource.
Returns the map of key-value pairs added via putMetadata(String, String)
.
Should report an error if called more than once in a request.
Gets the content of a resource specified.
resourceName | The fully qualified plugin name and resource to include (eg confluence.web.resources:legacy-styles ) |
---|
Get the resource tags that would be necessary for the supplied List of extra contexts. That is, return
the resource tags for these requested contexts but exclude any contexts that have already been required
(requireResourcesForContext(String)
).
contexts | the extra contexts to return resource tags for |
---|
Returns the HTML output of includeResources(java.io.Writer)
, which includes references to
all the delayed Javascript and CSS resources requested by requireResource(String)
.
This is a convenience method for velocity templates and is equivalent to calling includeResources with
AUTO
and DefaultWebResourceFilter.
Get the resource prefix for a particular space's CSS file. This prefix should be updated every time there is a change to the space's theme or colour scheme.
spaceKey | the key of the space we're viewing the CSS for, or null for the global CSS. |
---|
Returns the script tags for the theme specific javascript resources. If spaceKey is null
or invalid,
the globally configured theme resources are returned.
Adds key-value String pairs to a map to be rendered later.
key | a unique key to store the value against |
---|---|
value | an HTML-safe string |
Requires all resources which have the given context specified in their descriptor
context | The name of the context for which you want to require resources (eg "confluence.main") |
---|