com.atlassian.jira.plugin.versionpanel.impl
Class GenericTabPanel

java.lang.Object
  extended by com.atlassian.jira.plugin.versionpanel.impl.GenericTabPanel
All Implemented Interfaces:
TabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext>, VersionTabPanel
Direct Known Subclasses:
PopularIssuesTabPanel

@PublicSpi
public class GenericTabPanel
extends Object
implements VersionTabPanel

Since:
v3.10

Field Summary
protected  JiraAuthenticationContext authenticationContext
           
protected  SearchProvider searchProvider
           
 
Constructor Summary
GenericTabPanel(JiraAuthenticationContext authenticationContext, SearchProvider searchProvider)
          Deprecated. Use GenericTabPanel(com.atlassian.jira.security.JiraAuthenticationContext, com.atlassian.jira.issue.search.SearchProvider, com.atlassian.jira.web.FieldVisibilityManager) instead. Since 4.4.
GenericTabPanel(JiraAuthenticationContext authenticationContext, SearchProvider searchProvider, FieldVisibilityManager fieldVisibilityManager)
           
 
Method Summary
protected  StatisticAccessorBean createStatisticAccessorBean(BrowseVersionContext context, boolean limitToUnresolved)
           
protected  Map<String,Object> createVelocityParams(BrowseVersionContext context)
           
 String getHtml(BrowseVersionContext context)
          Used to render the tab.
 void init(VersionTabPanelModuleDescriptor descriptor)
          Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor.
 boolean showPanel(BrowseVersionContext context)
          Returns true if fix for version field is visible, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authenticationContext

protected final JiraAuthenticationContext authenticationContext

searchProvider

protected final SearchProvider searchProvider
Constructor Detail

GenericTabPanel

public GenericTabPanel(JiraAuthenticationContext authenticationContext,
                       SearchProvider searchProvider,
                       FieldVisibilityManager fieldVisibilityManager)

GenericTabPanel

@Deprecated
public GenericTabPanel(JiraAuthenticationContext authenticationContext,
                                  SearchProvider searchProvider)
Deprecated. Use GenericTabPanel(com.atlassian.jira.security.JiraAuthenticationContext, com.atlassian.jira.issue.search.SearchProvider, com.atlassian.jira.web.FieldVisibilityManager) instead. Since 4.4.

Method Detail

init

public void init(VersionTabPanelModuleDescriptor descriptor)
Description copied from interface: TabPanel
Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor. This is usually used for rendering velocity views.

Specified by:
init in interface TabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext>
Parameters:
descriptor - the descriptor for this module as defined in the plugin xml descriptor.

getHtml

public String getHtml(BrowseVersionContext context)
Description copied from interface: TabPanel
Used to render the tab.

Specified by:
getHtml in interface TabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext>
Parameters:
context - The current context the tab is rendering in.
Returns:
Escaped string with the required html.

createStatisticAccessorBean

protected StatisticAccessorBean createStatisticAccessorBean(BrowseVersionContext context,
                                                            boolean limitToUnresolved)

createVelocityParams

protected Map<String,Object> createVelocityParams(BrowseVersionContext context)

showPanel

public boolean showPanel(BrowseVersionContext context)
Returns true if fix for version field is visible, false otherwise.

Specified by:
showPanel in interface TabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext>
Parameters:
context - version context
Returns:
true if fix for version field is visible, false otherwise


Copyright © 2002-2012 Atlassian. All Rights Reserved.