com.atlassian.jira.plugin.issuetabpanel
Class IssueTabPanelInvokerImpl

java.lang.Object
  extended by 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

Constructor Summary
IssueTabPanelInvokerImpl(I18nHelper.BeanFactory i18Factory, JiraAuthenticationContext jiraAuthenticationContext)
           
 
Method Summary
 GetActionsReply invokeGetActions(GetActionsRequest request, IssueTabPanel issueTabPanel)
          Calls the getActions method on the IssueTabPanel.
 ShowPanelReply invokeShowPanel(ShowPanelRequest request, IssueTabPanel issueTabPanel)
          Calls the showPanel method in the IssueTabPanel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueTabPanelInvokerImpl

public IssueTabPanelInvokerImpl(I18nHelper.BeanFactory i18Factory,
                                JiraAuthenticationContext jiraAuthenticationContext)
Method Detail

invokeShowPanel

public ShowPanelReply invokeShowPanel(ShowPanelRequest request,
                                      IssueTabPanel issueTabPanel)
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 ShowPanelRequest
issueTabPanel - an IssueTabPanel
Returns:
a ShowPanelReply

invokeGetActions

public GetActionsReply invokeGetActions(GetActionsRequest request,
                                        IssueTabPanel issueTabPanel)
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 GetActionsRequest
issueTabPanel - an IssueTabPanel
Returns:
a GetActionsReply


Copyright © 2002-2012 Atlassian. All Rights Reserved.