public class

RemoteIssueLinkUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.plugin.viewissue.issuelink.RemoteIssueLinkUtils

Class Overview

Converts a remote link to a LinkSource that is used by the velocity macro to display web links.

Summary

Constants
String DEFAULT_RELATIONSHIP_I18N_KEY
Public Methods
static Map<StringList<IssueLinkContext>> convertToIssueLinkContexts(List<RemoteIssueLink> remoteIssueLinks, Long issueId, String baseUrl, I18nHelper i18n, PluginAccessor pluginAccessor)
static String getFinalHtml(RemoteIssueLink remoteIssueLink, PluginAccessor pluginAccessor)
Returns the final HTML for the remote issue link.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DEFAULT_RELATIONSHIP_I18N_KEY

Constant Value: "issuelinking.remote.link.relationship.default"

Public Methods

public static Map<StringList<IssueLinkContext>> convertToIssueLinkContexts (List<RemoteIssueLink> remoteIssueLinks, Long issueId, String baseUrl, I18nHelper i18n, PluginAccessor pluginAccessor)

public static String getFinalHtml (RemoteIssueLink remoteIssueLink, PluginAccessor pluginAccessor)

Returns the final HTML for the remote issue link.

Parameters
remoteIssueLink remote issue link
pluginAccessor plugin accessor
Returns
  • final HTML for the remote issue link
Throws
IllegalStateException when the plugin providing the renderer is in invalid state
RuntimeException propagating from underlying RemoteIssueLinkRenderer implementation