com.atlassian.jira.plugin.issuetabpanel
Class IssueTabPanelInvokerImpl
java.lang.Object
com.atlassian.jira.plugin.issuetabpanel.IssueTabPanelInvokerImpl
- All Implemented Interfaces:
- IssueTabPanelInvoker
public final class IssueTabPanelInvokerImpl
- extends Object
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IssueTabPanelInvokerImpl
public IssueTabPanelInvokerImpl(I18nHelper.BeanFactory i18Factory,
JiraAuthenticationContext jiraAuthenticationContext)
invokeShowPanel
public boolean invokeShowPanel(ShowPanelRequest request,
IssueTabPanelModuleDescriptor descriptor)
- Description copied from interface:
IssueTabPanelInvoker
- 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
.
- Specified by:
invokeShowPanel
in interface IssueTabPanelInvoker
- Parameters:
request
- a ShowPanelRequestdescriptor
- the tab panel's module descriptor
- Returns:
- a ShowPanelReply
invokeGetActions
public List<IssueAction> invokeGetActions(GetActionsRequest request,
IssueTabPanelModuleDescriptor descriptor)
- Description copied from interface:
IssueTabPanelInvoker
- 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..
- Specified by:
invokeGetActions
in interface IssueTabPanelInvoker
- Parameters:
request
- a GetActionsRequestdescriptor
- the tab panel's module descriptor
- Returns:
- a GetActionsReply
Copyright © 2002-2013 Atlassian. All Rights Reserved.