public class DefaultMacroIconManager extends Object implements MacroIconManager
Constructor and Description |
---|
DefaultMacroIconManager(com.atlassian.sal.api.net.RequestFactory<?> requestFactory,
com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator) |
Modifier and Type | Method and Description |
---|---|
String |
getExternalSmallIconUrl(MacroMetadata macroMetadata)
Retrieve a the Url to a small icon for a macro.
|
InputStream |
getIconStream(MacroMetadata macroMetadata)
Retrieve an inputStream of the macro's icon.
|
public DefaultMacroIconManager(com.atlassian.sal.api.net.RequestFactory<?> requestFactory, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator)
public String getExternalSmallIconUrl(MacroMetadata macroMetadata)
MacroIconManager
getExternalSmallIconUrl
in interface MacroIconManager
macroMetadata
- the metadata for the macro to retrieve the icon url forpublic InputStream getIconStream(MacroMetadata macroMetadata)
MacroIconManager
getIconStream
in interface MacroIconManager
macroMetadata
- the metadata for the macroCopyright © 2003–2021 Atlassian. All rights reserved.