com.atlassian.jira.plugin.issuetabpanel
Class AbstractIssueTabPanel2

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

@PublicSpi
public abstract class AbstractIssueTabPanel2
extends Object
implements IssueTabPanel2

Convenience class for implementors of IssueTabPanel2.


Constructor Summary
AbstractIssueTabPanel2()
           
 
Method Summary
protected  IssueTabPanelModuleDescriptor descriptor()
           
 List<IssueAction> getActions(Issue issue, com.atlassian.crowd.embedded.api.User remoteUser)
          Bridge method that delegates to the new IssueTabPanel2.getActions(GetActionsRequest) method.
protected  void init()
          Subclasses of AbstractIssueTabPanel2 may implement this method in order to perform initialisation work.
 void init(IssueTabPanelModuleDescriptor descriptor)
          Initialises this AbstractIssueTabPanel2's descriptor and calls the initialisation hook in the subclass.
 boolean showPanel(Issue issue, com.atlassian.crowd.embedded.api.User remoteUser)
          Bridge method that delegates to the new IssueTabPanel2.showPanel(ShowPanelRequest) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.plugin.issuetabpanel.IssueTabPanel2
getActions, showPanel
 

Constructor Detail

AbstractIssueTabPanel2

public AbstractIssueTabPanel2()
Method Detail

init

public final void init(IssueTabPanelModuleDescriptor descriptor)
Initialises this AbstractIssueTabPanel2's descriptor and calls the initialisation hook in the subclass.

Specified by:
init in interface IssueTabPanel
Parameters:
descriptor - an IssueTabPanelModuleDescriptor

showPanel

public final boolean showPanel(Issue issue,
                               com.atlassian.crowd.embedded.api.User remoteUser)
Bridge method that delegates to the new IssueTabPanel2.showPanel(ShowPanelRequest) method.

Specified by:
showPanel in interface IssueTabPanel
Parameters:
issue - The Issue.
remoteUser - The viewing user.
Returns:
true if we should show this tab panel to the given User for the given Issue.

getActions

public final List<IssueAction> getActions(Issue issue,
                                          com.atlassian.crowd.embedded.api.User remoteUser)
Bridge method that delegates to the new IssueTabPanel2.getActions(GetActionsRequest) method.

Specified by:
getActions in interface IssueTabPanel
Parameters:
issue - The Issue.
remoteUser - The viewing user.
Returns:
a List

descriptor

protected final IssueTabPanelModuleDescriptor descriptor()
Returns:
the IssueTabPanelModuleDescriptor for this IssueTabPanel

init

protected void init()
Subclasses of AbstractIssueTabPanel2 may implement this method in order to perform initialisation work.



Copyright © 2002-2013 Atlassian. All Rights Reserved.