Class IssueTabPanelInvokerImpl
java.lang.Object
com.atlassian.jira.plugin.issuetabpanel.IssueTabPanelInvokerImpl
- All Implemented Interfaces:
IssueTabPanelInvoker
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.
- Since:
- v5.0
-
Constructor Summary
ConstructorsConstructorDescriptionIssueTabPanelInvokerImpl(I18nHelper.BeanFactory i18Factory, JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptioninvokeGetActions(GetActionsRequest request, IssueTabPanelModuleDescriptor descriptor) Calls thegetActionsmethod on the IssueTabPanel.invokeGetHeader(GetActionsRequest request, IssueTabPanelModuleDescriptor descriptor) invokeGetPersistentMarkup(GetActionsRequest request, IssueTabPanelModuleDescriptor descriptor) booleaninvokeShowPanel(ShowPanelRequest request, IssueTabPanelModuleDescriptor descriptor) Calls theshowPanelmethod in the IssueTabPanel.
-
Constructor Details
-
IssueTabPanelInvokerImpl
public IssueTabPanelInvokerImpl(I18nHelper.BeanFactory i18Factory, JiraAuthenticationContext jiraAuthenticationContext)
-
-
Method Details
-
invokeShowPanel
Description copied from interface:IssueTabPanelInvokerCalls theshowPanelmethod in the IssueTabPanel. If theshowPanelimplementation throws any exceptions this method logs the exception and returns a reply containingtrue.- Specified by:
invokeShowPanelin interfaceIssueTabPanelInvoker- Parameters:
request- a ShowPanelRequestdescriptor- the tab panel's module descriptor- Returns:
- a ShowPanelReply
-
invokeGetActions
public Page<IssueAction> invokeGetActions(GetActionsRequest request, IssueTabPanelModuleDescriptor descriptor) Description copied from interface:IssueTabPanelInvokerCalls thegetActionsmethod on the IssueTabPanel. If thegetActionsimplementation throws any exceptions then this method logs the exception and returns a reply containing a single action that renders an error message..- Specified by:
invokeGetActionsin interfaceIssueTabPanelInvoker- Parameters:
request- a GetActionsRequestdescriptor- the tab panel's module descriptor- Returns:
- a GetActionsReply
-
invokeGetPersistentMarkup
public String invokeGetPersistentMarkup(GetActionsRequest request, IssueTabPanelModuleDescriptor descriptor) - Specified by:
invokeGetPersistentMarkupin interfaceIssueTabPanelInvoker
-
invokeGetHeader
- Specified by:
invokeGetHeaderin interfaceIssueTabPanelInvoker
-