@PublicApi
public interface JiraWebResourceManager
extends com.atlassian.plugin.webresource.WebResourceManager
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getMetadata()
Deprecated.
You should generally never need to use this API, instead you should rely on the page builder service
delivering data to the client side and exposing it via the
WRM.data.claim JavaScript API. |
boolean |
putMetadata(String key,
String value)
Deprecated.
Use
WebResourceDataProvider instead. Since v6.4. |
executeInNewContext, getRequiredResources, getRequiredResources, getRequiredResources, getResourceTags, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, includeResources, includeResources, includeResources, requireResource, requireResource, requireResource, requireResourcesForContext
boolean putMetadata(String key, String value)
WebResourceDataProvider
instead. Since v6.4.key
- a unique key to store the value againstvalue
- an HTML-safe stringMap<String,String> getMetadata()
WRM.data.claim
JavaScript API.putMetadata(String, String)
.
Prior to v6.4, multiple invocations weren't supported, and only the first call would return metadata. Subsequent calls would return an empty Map. Since v6.4, multiple invocations of this method are supported. Each invocation drains and returns the metadata added since the last invocation.
putMetadata(String, String)
.Copyright © 2002-2017 Atlassian. All Rights Reserved.