Class RemoteJiraIssueLinkRenderer
java.lang.Object
com.atlassian.jira.plugin.issuelink.AbstractIssueLinkRenderer
com.atlassian.jira.plugin.viewissue.issuelink.DefaultIssueLinkRenderer
com.atlassian.jira.plugin.link.remotejira.RemoteJiraIssueLinkRenderer
- All Implemented Interfaces:
IssueLinkRenderer
Renders remote JIRA issue links.
- Since:
- v5.0
-
Field Summary
Fields inherited from class com.atlassian.jira.plugin.viewissue.issuelink.DefaultIssueLinkRenderer
DEFAULT_ICON_URL
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteJiraIssueLinkRenderer
(JiraRemoteIssueLinkDecoratingService jiraRemoteIssueLinkDecoratingService, RemoteJiraGlobalIdFactory remoteJiraGlobalIdFactory) Deprecated.RemoteJiraIssueLinkRenderer
(JiraRemoteIssueLinkDecoratingService jiraRemoteIssueLinkDecoratingService, RemoteJiraGlobalIdFactory remoteJiraGlobalIdFactory, UserPreferencesManager userPreferencesManager, JiraAuthenticationContext jiraAuthenticationContext, VelocityRequestContextFactory velocityRequestContextFactory, FeatureManager featureManager, ExternalLinkInNewWindow externalLinkInNewWindow) -
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)
.Methods inherited from class com.atlassian.jira.plugin.viewissue.issuelink.DefaultIssueLinkRenderer
getInitialContext
Methods inherited from class com.atlassian.jira.plugin.issuelink.AbstractIssueLinkRenderer
shouldDisplay
-
Constructor Details
-
RemoteJiraIssueLinkRenderer
@Deprecated public RemoteJiraIssueLinkRenderer(JiraRemoteIssueLinkDecoratingService jiraRemoteIssueLinkDecoratingService, RemoteJiraGlobalIdFactory remoteJiraGlobalIdFactory) Deprecated. -
RemoteJiraIssueLinkRenderer
public RemoteJiraIssueLinkRenderer(JiraRemoteIssueLinkDecoratingService jiraRemoteIssueLinkDecoratingService, RemoteJiraGlobalIdFactory remoteJiraGlobalIdFactory, UserPreferencesManager userPreferencesManager, JiraAuthenticationContext jiraAuthenticationContext, VelocityRequestContextFactory velocityRequestContextFactory, FeatureManager featureManager, ExternalLinkInNewWindow externalLinkInNewWindow)
-
-
Method Details
-
getFinalContext
public Map<String,Object> getFinalContext(RemoteIssueLink remoteIssueLink, Map<String, Object> context) Description copied from class:AbstractIssueLinkRenderer
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
- Overrides:
getFinalContext
in classAbstractIssueLinkRenderer
- Parameters:
remoteIssueLink
- remote issue linkcontext
- the contextual information that can be used during rendering.- Returns:
- velocity context used to render the final HTML
-
requiresAsyncLoading
Description copied from class:AbstractIssueLinkRenderer
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
- Overrides:
requiresAsyncLoading
in classAbstractIssueLinkRenderer
- Parameters:
remoteIssueLink
- remote issue link- Returns:
- false by default
-