public class JiraWebResourceManagerImpl extends com.atlassian.plugin.webresource.WebResourceManagerImpl implements JiraWebResourceManager
Constructor and Description |
---|
JiraWebResourceManagerImpl(com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator,
com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.plugin.webresource.ResourceBatchingConfiguration batchingConfiguration) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getMetadata()
Returns the map of key-value pairs added via
JiraWebResourceManager.putMetadata(String, String) . |
boolean |
putMetadata(String key,
String value)
Adds key-value String pairs to a map to be rendered later.
|
executeInNewContext, getRequestLocalAssembledResources, getRequestLocalRequiredResources, getRequiredResources, getRequiredResources, getRequiredResources, getRequiredResources, getResourceTags, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, includeResources, includeResources, includeResources, requireResource, requireResource, requireResource, requireResourcesForContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeInNewContext, getRequiredResources, getRequiredResources, getRequiredResources, getResourceTags, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, includeResources, includeResources, includeResources, requireResource, requireResource, requireResource, requireResourcesForContext
public JiraWebResourceManagerImpl(com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.plugin.webresource.ResourceBatchingConfiguration batchingConfiguration)
public boolean putMetadata(String key, String value)
JiraWebResourceManager
putMetadata
in interface JiraWebResourceManager
key
- a unique key to store the value againstvalue
- an HTML-safe stringpublic Map<String,String> getMetadata()
JiraWebResourceManager
JiraWebResourceManager.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.
getMetadata
in interface JiraWebResourceManager
JiraWebResourceManager.putMetadata(String, String)
.Copyright © 2002-2021 Atlassian. All Rights Reserved.