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

java.lang.Object
  extended bycom.atlassian.jira.plugin.report.impl.AbstractReport
      extended bycom.atlassian.jira.plugin.report.impl.VersionWorkloadReport
All Implemented Interfaces:
Report

public class VersionWorkloadReport
extends AbstractReport


Field Summary
(package private)  long grandTotal
           
(package private)  Map issueTypeTotals
           
(package private)  Map user2Issues
           
(package private)  Map user2RemainingTime
           
(package private)  Map userSummaryTotals
           
 
Fields inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
descriptor
 
Constructor Summary
VersionWorkloadReport(VersionManager versionManager, IssueManager issueManager, ConstantsManager constantsManager, ApplicationProperties applicationProperties, IssueTypeSchemeManager issueTypeSchemeManager)
           
 
Method Summary
 void calculateSummaryTotals(Collection issues)
           
 String generateReportHtml(ProjectActionSupport action, Map reqParams)
          Generate the report's HTML - usually from the Velocity resource named "html".
 Collection getAssignees()
           
 String getGrandTotal()
           
 Collection getIssuesByType(String user, String type)
           
 String getIssueTypeTotal(String issueType)
           
 String getNiceTimeDuration(org.ofbiz.core.entity.GenericValue issue, String field)
           
 String getRemainingTime(String assignee)
           
 String getTotalTimeForUserByIssueType(String user, String type)
           
 Collection loadIssues(User remoteUser, String versionId)
           
 Collection loadIssueTypes(org.ofbiz.core.entity.GenericValue projectGV)
           
 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
generateReportExcel, getDescriptor, getIssueConstant, init, isExcelViewSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user2Issues

Map user2Issues

user2RemainingTime

Map user2RemainingTime

userSummaryTotals

Map userSummaryTotals

issueTypeTotals

Map issueTypeTotals

grandTotal

long grandTotal
Constructor Detail

VersionWorkloadReport

public VersionWorkloadReport(VersionManager versionManager,
                             IssueManager issueManager,
                             ConstantsManager constantsManager,
                             ApplicationProperties applicationProperties,
                             IssueTypeSchemeManager issueTypeSchemeManager)
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

getTotalTimeForUserByIssueType

public String getTotalTimeForUserByIssueType(String user,
                                             String type)

getGrandTotal

public String getGrandTotal()

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

loadIssues

public Collection loadIssues(User remoteUser,
                             String versionId)
                      throws Exception
Throws:
Exception

loadIssueTypes

public Collection loadIssueTypes(org.ofbiz.core.entity.GenericValue projectGV)

calculateSummaryTotals

public void calculateSummaryTotals(Collection issues)

getAssignees

public Collection getAssignees()

getIssuesByType

public Collection getIssuesByType(String user,
                                  String type)

getRemainingTime

public String getRemainingTime(String assignee)

getIssueTypeTotal

public String getIssueTypeTotal(String issueType)

getNiceTimeDuration

public String getNiceTimeDuration(org.ofbiz.core.entity.GenericValue issue,
                                  String field)


Copyright © 2002-2006 Atlassian. All Rights Reserved.