com.atlassian.jira.plugin.componentpanel.impl
Class AbstractSummaryTabPanel

java.lang.Object
  extended by com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
      extended by com.atlassian.jira.plugin.componentpanel.impl.AbstractSummaryTabPanel
All Implemented Interfaces:
ComponentTabPanel
Direct Known Subclasses:
ChangeLogTabPanel, RoadMapTabPanel

public abstract class AbstractSummaryTabPanel
extends GenericTabPanel

An Abstract class to display a comment summary (namely Roadmap and Changelog). This contains the logic required to display a list of versions and all issues for each version, as well as a progress bar for those versions.

Since:
v3.10

Field Summary
protected  ApplicationProperties applicationProperties
           
protected  ConstantsManager constantsManager
           
protected  SearchProvider searchProvider
           
protected  VersionManager versionManager
           
 
Fields inherited from class com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
authenticationContext, projectManager
 
Constructor Summary
AbstractSummaryTabPanel(ProjectManager projectManager, JiraAuthenticationContext authenticationContext, VersionManager versionManager, ConstantsManager constantsManager, SearchProvider searchProvider, ApplicationProperties applicationProperties)
           
 
Method Summary
protected  Map createVelocityParams(ComponentContext context)
           
 PercentageGraphModel getGraphModel(ProjectComponent component, Version version)
           
 Collection getIssuesByFixForVersion(ProjectComponent component, Version version)
           
 long getResolvedIssuesCount(ProjectComponent component, Version version)
           
protected abstract  Collection getVersions(Long projectId)
          Implement this method in order to return a collection of required versions.
 
Methods inherited from class com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
createStatisticAccessorBean, getHtml, init, showPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionManager

protected final VersionManager versionManager

searchProvider

protected final SearchProvider searchProvider

constantsManager

protected final ConstantsManager constantsManager

applicationProperties

protected final ApplicationProperties applicationProperties
Constructor Detail

AbstractSummaryTabPanel

public AbstractSummaryTabPanel(ProjectManager projectManager,
                               JiraAuthenticationContext authenticationContext,
                               VersionManager versionManager,
                               ConstantsManager constantsManager,
                               SearchProvider searchProvider,
                               ApplicationProperties applicationProperties)
Method Detail

getVersions

protected abstract Collection getVersions(Long projectId)
Implement this method in order to return a collection of required versions.

Parameters:
projectId - project id
Returns:
a collection of Version objects

createVelocityParams

protected Map createVelocityParams(ComponentContext context)
Overrides:
createVelocityParams in class GenericTabPanel

getGraphModel

public PercentageGraphModel getGraphModel(ProjectComponent component,
                                          Version version)
                                   throws Exception
Throws:
Exception

getIssuesByFixForVersion

public Collection getIssuesByFixForVersion(ProjectComponent component,
                                           Version version)

getResolvedIssuesCount

public long getResolvedIssuesCount(ProjectComponent component,
                                   Version version)
                            throws Exception
Throws:
Exception


Copyright © 2002-2008 Atlassian. All Rights Reserved.