public final class

IssueTabPanelInvokerImpl

extends Object
implements IssueTabPanelInvoker
java.lang.Object
   ↳ com.atlassian.jira.plugin.issuetabpanel.IssueTabPanelInvokerImpl

Class Overview

This class is used to safely invoke methods in the IssueTabPanel and IssueTabPanel2 interfaces. When any of the invoked methods throws an exception, this invoker will just log the exception and instead return an action that will display a pretty error, so as not to kill the whole "Activity" block on the view issue page.

Summary

Public Constructors
IssueTabPanelInvokerImpl(I18nHelper.BeanFactory i18Factory, JiraAuthenticationContext jiraAuthenticationContext)
Public Methods
List<IssueAction> invokeGetActions(GetActionsRequest request, IssueTabPanelModuleDescriptor descriptor)
Calls the getActions method on the IssueTabPanel.
boolean invokeShowPanel(ShowPanelRequest request, IssueTabPanelModuleDescriptor descriptor)
Calls the showPanel method in the IssueTabPanel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.issuetabpanel.IssueTabPanelInvoker

Public Constructors

public IssueTabPanelInvokerImpl (I18nHelper.BeanFactory i18Factory, JiraAuthenticationContext jiraAuthenticationContext)

Public Methods

public List<IssueAction> invokeGetActions (GetActionsRequest request, IssueTabPanelModuleDescriptor descriptor)

Calls the getActions method on the IssueTabPanel. If the getActions implementation throws any exceptions then this method logs the exception and returns a reply containing a single action that renders an error message..

Parameters
request a GetActionsRequest
descriptor the tab panel's module descriptor
Returns
  • a GetActionsReply

public boolean invokeShowPanel (ShowPanelRequest request, IssueTabPanelModuleDescriptor descriptor)

Calls the showPanel method in the IssueTabPanel. If the showPanel implementation throws any exceptions this method logs the exception and returns a reply containing true.

Parameters
request a ShowPanelRequest
descriptor the tab panel's module descriptor
Returns
  • a ShowPanelReply