com.atlassian.jira.plugin.viewissue.issuelink
Class RemoteIssueLinkUtils

java.lang.Object
  extended by com.atlassian.jira.plugin.viewissue.issuelink.RemoteIssueLinkUtils

public class RemoteIssueLinkUtils
extends Object

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

Since:
v5.0

Field Summary
static String DEFAULT_RELATIONSHIP_I18N_KEY
           
 
Method Summary
static Map<String,List<IssueLinkContext>> convertToIssueLinkContexts(List<RemoteIssueLink> remoteIssueLinks, Long issueId, String baseUrl, I18nHelper i18n, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
static String getFinalHtml(RemoteIssueLink remoteIssueLink, com.atlassian.plugin.PluginAccessor pluginAccessor)
          Returns the final HTML for the remote issue link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RELATIONSHIP_I18N_KEY

public static final String DEFAULT_RELATIONSHIP_I18N_KEY
See Also:
Constant Field Values
Method Detail

convertToIssueLinkContexts

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

getFinalHtml

public static String getFinalHtml(RemoteIssueLink remoteIssueLink,
                                  com.atlassian.plugin.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


Copyright © 2002-2014 Atlassian. All Rights Reserved.