com.atlassian.jira.plugin.link.confluence.render
Class ConfluenceIssueLinkRenderer

java.lang.Object
  extended by com.atlassian.jira.plugin.issuelink.AbstractIssueLinkRenderer
      extended by com.atlassian.jira.plugin.viewissue.issuelink.DefaultIssueLinkRenderer
          extended by com.atlassian.jira.plugin.link.confluence.render.ConfluenceIssueLinkRenderer
All Implemented Interfaces:
IssueLinkRenderer

public class ConfluenceIssueLinkRenderer
extends DefaultIssueLinkRenderer

Renders issue links to Confluence pages.

Since:
v5.0

Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.viewissue.issuelink.DefaultIssueLinkRenderer
DEFAULT_ICON_URL
 
Constructor Summary
ConfluenceIssueLinkRenderer(ConfluenceIssueLinkDecoratingService confluenceIssueLinkDecoratingService, ConfluenceGlobalIdFactory confluenceGlobalIdFactory)
           
 
Method Summary
 Map<String,Object> getFinalContext(RemoteIssueLink remoteIssueLink, Map<String,Object> context)
          Refer to documentation in IssueLinkRenderer.getFinalContext(com.atlassian.jira.issue.link.RemoteIssueLink, java.util.Map).
 boolean requiresAsyncLoading(RemoteIssueLink remoteIssueLink)
          Refer to documentation in IssueLinkRenderer.requiresAsyncLoading(com.atlassian.jira.issue.link.RemoteIssueLink).
 
Methods inherited from class com.atlassian.jira.plugin.viewissue.issuelink.DefaultIssueLinkRenderer
getInitialContext
 
Methods inherited from class com.atlassian.jira.plugin.issuelink.AbstractIssueLinkRenderer
shouldDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceIssueLinkRenderer

public ConfluenceIssueLinkRenderer(ConfluenceIssueLinkDecoratingService confluenceIssueLinkDecoratingService,
                                   ConfluenceGlobalIdFactory confluenceGlobalIdFactory)
Method Detail

getFinalContext

public Map<String,Object> getFinalContext(RemoteIssueLink remoteIssueLink,
                                          Map<String,Object> context)
Description copied from class: AbstractIssueLinkRenderer
Refer to documentation in IssueLinkRenderer.getFinalContext(com.atlassian.jira.issue.link.RemoteIssueLink, java.util.Map). Subclasses requiring asynchronous loading should override this method, otherwise this method will always throw an UnsupportedOperationException.

Specified by:
getFinalContext in interface IssueLinkRenderer
Overrides:
getFinalContext in class AbstractIssueLinkRenderer
Parameters:
remoteIssueLink - remote issue link
context - the contextual information that can be used during rendering.
Returns:
velocity context used to render the final HTML

requiresAsyncLoading

public boolean requiresAsyncLoading(RemoteIssueLink remoteIssueLink)
Description copied from class: AbstractIssueLinkRenderer
Refer to documentation in IssueLinkRenderer.requiresAsyncLoading(com.atlassian.jira.issue.link.RemoteIssueLink). Subclasses requiring asynchronous loading should override this method and return true, otherwise this method will always return false.

Specified by:
requiresAsyncLoading in interface IssueLinkRenderer
Overrides:
requiresAsyncLoading in class AbstractIssueLinkRenderer
Parameters:
remoteIssueLink - remote issue link
Returns:
false by default


Copyright © 2002-2012 Atlassian. All Rights Reserved.