com.atlassian.jira.issue.tabpanels
Class AllTabPanel

java.lang.Object
  extended by com.atlassian.jira.plugin.issuetabpanel.AbstractIssueTabPanel2
      extended by com.atlassian.jira.issue.tabpanels.AllTabPanel
All Implemented Interfaces:
IssueTabPanel, IssueTabPanel2

public class AllTabPanel
extends AbstractIssueTabPanel2


Constructor Summary
AllTabPanel(com.atlassian.plugin.PluginAccessor pluginAccessor, IssueTabPanelInvoker issueTabPanelInvoker)
           
 
Method Summary
 GetActionsReply getActions(GetActionsRequest request)
          Returns a list of issue actions in the order that you want them to be displayed.
 ShowPanelReply showPanel(ShowPanelRequest request)
          Indicates whether this tab should be shown on a given issue.
 
Methods inherited from class com.atlassian.jira.plugin.issuetabpanel.AbstractIssueTabPanel2
descriptor, getActions, init, init, showPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllTabPanel

public AllTabPanel(com.atlassian.plugin.PluginAccessor pluginAccessor,
                   IssueTabPanelInvoker issueTabPanelInvoker)
Method Detail

getActions

public GetActionsReply getActions(GetActionsRequest request)
Description copied from interface: IssueTabPanel2
Returns a list of issue actions in the order that you want them to be displayed. This method will only be called if showPanel returned true for a given issue and user. The request parameter contains the user that is viewing the tab, information as to whether the tab is being loaded using an AJAX request, and so on.

Example implementation:

 @Override
 public GetActionsReply getActions(GetActionsRequest request)
 {
     if (!request.isAsynchronous())
     {
         return GetActionsReply.create(new AjaxTabPanelAction(request));
     }

     return GetActionsReply.create(getActionsList(request));
 }
 

Note that for the 'all' tab, the returned actions will be displayed in order according to the value returned by IssueAction.getTimePerformed().

Parameters:
request - a GetActionsRequest
Returns:
a GetActionsReply containing the actions to display

showPanel

public ShowPanelReply showPanel(ShowPanelRequest request)
Description copied from interface: IssueTabPanel2
Indicates whether this tab should be shown on a given issue.

Parameters:
request - a ShowPanelRequest
Returns:
a ShowPanelRequest indicating whether to show the panel or not


Copyright © 2002-2012 Atlassian. All Rights Reserved.