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

java.lang.Object
  extended by com.atlassian.jira.plugin.report.impl.AbstractReport
      extended by com.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 user2FullNames
           
(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, SearchProvider searchProvider, ConstantsManager constantsManager, ApplicationProperties applicationProperties, IssueTypeSchemeManager issueTypeSchemeManager, JiraDurationUtils jiraDurationUtils)
           
 
Method Summary
protected  void calculateSummaryTotals(Collection issues)
           
 String generateReportHtml(ProjectActionSupport action, Map reqParams)
          Generate the report's HTML - usually from the Velocity resource named "html".
 String getAssigneeFullName(String username)
           
 String getGrandTotal()
           
 Collection getIssuesByType(String user, String typeId)
           
 String getIssueTypeTotal(String issueType)
           
 String getNiceTimeEstimateDuration(Issue issue)
           
 String getRemainingTime(String assignee)
           
 String getTotalTimeForUserByIssueType(String user, String type)
           
protected  List loadIssues(User remoteUser, String versionId)
           
protected  List loadIssueTypes(org.ofbiz.core.entity.GenericValue projectGV)
          Returns a collection of IssueType's associated with the projectGV for professional and enterprise editions.
 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

user2FullNames

Map user2FullNames

user2Issues

Map user2Issues

user2RemainingTime

Map user2RemainingTime

userSummaryTotals

Map userSummaryTotals

issueTypeTotals

Map issueTypeTotals

grandTotal

long grandTotal
Constructor Detail

VersionWorkloadReport

public VersionWorkloadReport(VersionManager versionManager,
                             SearchProvider searchProvider,
                             ConstantsManager constantsManager,
                             ApplicationProperties applicationProperties,
                             IssueTypeSchemeManager issueTypeSchemeManager,
                             JiraDurationUtils jiraDurationUtils)
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

protected List loadIssues(User remoteUser,
                          String versionId)
                   throws Exception
Throws:
Exception

loadIssueTypes

protected List loadIssueTypes(org.ofbiz.core.entity.GenericValue projectGV)
Returns a collection of IssueType's associated with the projectGV for professional and enterprise editions. In standard edition, it simply returns all the IssueType's

Parameters:
projectGV - Project GenericValue
Returns:
Collection of IssueType's

calculateSummaryTotals

protected void calculateSummaryTotals(Collection issues)

getIssuesByType

public Collection getIssuesByType(String user,
                                  String typeId)

getRemainingTime

public String getRemainingTime(String assignee)

getIssueTypeTotal

public String getIssueTypeTotal(String issueType)

getNiceTimeEstimateDuration

public String getNiceTimeEstimateDuration(Issue issue)

getAssigneeFullName

public String getAssigneeFullName(String username)


Copyright © 2002-2007 Atlassian. All Rights Reserved.