com.atlassian.jira.plugin.report.impl
Class TimeTrackingReport

java.lang.Object
  extended by com.atlassian.jira.plugin.report.impl.AbstractReport
      extended by com.atlassian.jira.plugin.report.impl.TimeTrackingReport
All Implemented Interfaces:
Report

public class TimeTrackingReport
extends AbstractReport


Nested Class Summary
 class TimeTrackingReport.Totals
           
 
Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
descriptor
 
Constructor Summary
TimeTrackingReport(VersionManager versionManager, ApplicationProperties applicationProperties, ConstantsManager constantsManager, JiraDurationUtils jiraDurationUtils, SearchProvider searchProvider)
           
 
Method Summary
 String generateReportExcel(ProjectActionSupport action, Map reqParams)
          By default, will throw an UnsuppportedOperationException as reports don't support Excel by default.
 String generateReportHtml(ProjectActionSupport action, Map reqParams)
          Generate the report's HTML - usually from the Velocity resource named "html".
 int getAccuracyPercentage()
           
 int getCompletionPercentage()
           
 Collection getProjectVersionIds(Project project)
          Get a collection of all version ids in the selected project
 boolean isExcelViewSupported()
          By default, reports do not have an Excel view.
 boolean showReport()
          Whether or not to show this report in the interface.
 void validate(ProjectActionSupport action, Map params)
          Validate the parameters passed to this report from the UI.
 
Methods inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
getDescriptor, getIssueConstant, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeTrackingReport

public TimeTrackingReport(VersionManager versionManager,
                          ApplicationProperties applicationProperties,
                          ConstantsManager constantsManager,
                          JiraDurationUtils jiraDurationUtils,
                          SearchProvider searchProvider)
Method Detail

showReport

public boolean showReport()
Description copied from class: AbstractReport
Whether or not to show this report in the interface. The default is "true".

Specified by:
showReport in interface Report
Overrides:
showReport in class AbstractReport

generateReportHtml

public String generateReportHtml(ProjectActionSupport action,
                                 Map reqParams)
                          throws Exception
Description copied from interface: Report
Generate the report's HTML - usually from the Velocity resource named "html".

Throws:
Exception

generateReportExcel

public String generateReportExcel(ProjectActionSupport action,
                                  Map reqParams)
                           throws Exception
Description copied from class: AbstractReport
By default, will throw an UnsuppportedOperationException as reports don't support Excel by default.

Specified by:
generateReportExcel in interface Report
Overrides:
generateReportExcel in class AbstractReport
Throws:
Exception

isExcelViewSupported

public boolean isExcelViewSupported()
Description copied from class: AbstractReport
By default, reports do not have an Excel view.

Specified by:
isExcelViewSupported in interface Report
Overrides:
isExcelViewSupported in class AbstractReport

validate

public void validate(ProjectActionSupport action,
                     Map params)
Description copied from interface: Report
Validate the parameters passed to this report from the UI.

Any errors should be added to the action errors.

Specified by:
validate in interface Report
Overrides:
validate in class AbstractReport

getProjectVersionIds

public Collection getProjectVersionIds(Project project)
Get a collection of all version ids in the selected project

Parameters:
project - project to get the version ids for
Returns:
collection of version ids

getCompletionPercentage

public int getCompletionPercentage()

getAccuracyPercentage

public int getAccuracyPercentage()


Copyright © 2002-2009 Atlassian. All Rights Reserved.