Class AbstractIssueLinkRenderer
java.lang.Object
com.atlassian.jira.plugin.issuelink.AbstractIssueLinkRenderer
- All Implemented Interfaces:
IssueLinkRenderer
- Direct Known Subclasses:
DefaultIssueLinkRenderer
@PublicSpi
public abstract class AbstractIssueLinkRenderer
extends Object
implements IssueLinkRenderer
Base class for an issue link renderer that does not perform any asynchronous rendering of an issue link and will
always display the issue link.
- Since:
- v5.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFinalContext
(RemoteIssueLink remoteIssueLink, Map<String, Object> context) Refer to documentation inIssueLinkRenderer.getFinalContext(com.atlassian.jira.issue.link.RemoteIssueLink, java.util.Map)
.boolean
requiresAsyncLoading
(RemoteIssueLink remoteIssueLink) Refer to documentation inIssueLinkRenderer.requiresAsyncLoading(com.atlassian.jira.issue.link.RemoteIssueLink)
.boolean
shouldDisplay
(RemoteIssueLink remoteIssueLink) Refer to documentation inIssueLinkRenderer.shouldDisplay(com.atlassian.jira.issue.link.RemoteIssueLink)
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.plugin.issuelink.IssueLinkRenderer
getInitialContext
-
Constructor Details
-
AbstractIssueLinkRenderer
public AbstractIssueLinkRenderer()
-
-
Method Details
-
getFinalContext
public Map<String,Object> getFinalContext(RemoteIssueLink remoteIssueLink, Map<String, Object> context) Refer to documentation inIssueLinkRenderer.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 interfaceIssueLinkRenderer
- Parameters:
remoteIssueLink
- remote issue linkcontext
- the contextual information that can be used during rendering.- Returns:
- velocity context used to render the final HTML
-
requiresAsyncLoading
Refer to documentation inIssueLinkRenderer.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 interfaceIssueLinkRenderer
- Parameters:
remoteIssueLink
- remote issue link- Returns:
- false by default
-
shouldDisplay
Refer to documentation inIssueLinkRenderer.shouldDisplay(com.atlassian.jira.issue.link.RemoteIssueLink)
.- Specified by:
shouldDisplay
in interfaceIssueLinkRenderer
- Parameters:
remoteIssueLink
- remote issue link- Returns:
- true by default
-