com.atlassian.jira.plugin.projectpanel.impl
Class VersionDrillDownRenderer.RoadMapGraphingBean

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.impl.VersionDrillDownRenderer.RoadMapGraphingBean
Enclosing class:
VersionDrillDownRenderer

public static class VersionDrillDownRenderer.RoadMapGraphingBean
extends Object

Helper class to draw progress charts.


Constructor Summary
VersionDrillDownRenderer.RoadMapGraphingBean(BrowseContext ctx, SearchProvider searchProvider, ConstantsManager constantsManager, SearchService searchService, boolean isPersonal)
           
 
Method Summary
 int getIssueCountByFixForVersion(Version version)
          Get a count of issues for a given fix for version under the current context.
 int getIssueCountOpenByFixForVersion(Version version)
          Get a count of open issues for a given fix for version under the current context.
 PercentageGraphModel getIssueSummaryByFixForVersion(Version version, ProjectComponent component, int openCount, int allCount)
          Gets a progress graph model for the current version under the current context.
 String getNavigatorUrl(Project project, Version version, ProjectComponent component, boolean isPersonal, boolean unresolved)
           
 String getResolvedQueryString()
          The query string for resolved issues.
 String getUnresolvedQueryString()
          The query string for unresolved issues.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionDrillDownRenderer.RoadMapGraphingBean

public VersionDrillDownRenderer.RoadMapGraphingBean(BrowseContext ctx,
                                                    SearchProvider searchProvider,
                                                    ConstantsManager constantsManager,
                                                    SearchService searchService,
                                                    boolean isPersonal)
Method Detail

getIssueCountByFixForVersion

public int getIssueCountByFixForVersion(Version version)
                                 throws SearchException
Get a count of issues for a given fix for version under the current context. Restricts it to assigned to current user if it is personal.

Parameters:
version - The fix for version to get the issue count for.
Returns:
the number of issues in this version under this context.
Throws:
SearchException - if an exception is thrown while searching

getIssueCountOpenByFixForVersion

public int getIssueCountOpenByFixForVersion(Version version)
                                     throws Exception
Get a count of open issues for a given fix for version under the current context. Restricts it to assigned to current user if it is personal.

Parameters:
version - The fix for version to get the open issue count for.
Returns:
the number of open issues in this version under this context.
Throws:
Exception - if an exception is thrown while searching

getIssueSummaryByFixForVersion

public PercentageGraphModel getIssueSummaryByFixForVersion(Version version,
                                                           ProjectComponent component,
                                                           int openCount,
                                                           int allCount)
                                                    throws Exception
Gets a progress graph model for the current version under the current context. Though this does not take a version, the underlying macro that generates the percentage chart takes a version.

Parameters:
openCount - The number of open issues for this version under this context
allCount - The total issues under this context
Returns:
a graph model representing the percentage of issues that are resolved.
Throws:
Exception

getNavigatorUrl

public String getNavigatorUrl(Project project,
                              Version version,
                              ProjectComponent component,
                              boolean isPersonal,
                              boolean unresolved)

getResolvedQueryString

public String getResolvedQueryString()
The query string for resolved issues.

Returns:
The query string for resolved issues.

getUnresolvedQueryString

public String getUnresolvedQueryString()
The query string for unresolved issues.

Returns:
The query string for unresolved issues.


Copyright © 2002-2012 Atlassian. All Rights Reserved.