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

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

public class DeveloperWorkloadReport
extends AbstractReport


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
descriptor
 
Constructor Summary
DeveloperWorkloadReport(ProjectManager projectManager, ApplicationProperties applicationProperties)
           
 
Method Summary
 String formatPrettyDuration(Long v)
          this formatting function is shared by the full view for navigator as well as view issue.
 String generateReportHtml(ProjectActionSupport action, Map reqParams)
          Generate the report's HTML - usually from the Velocity resource named "html".
protected  int getDaysPerWeek()
           
protected  int getHoursPerDay()
           
 String getProjectName(String pid)
           
 Long getTotalIssuesCount(Map countMap)
           
 Long getTotalWorkload(Map workloadMap)
           
 List initAssignedIssues(User remoteUser, User developer)
          Retrieves the list of the issues that are currently assigned to the specified developer issue must be unresolved
 Map initCountMap(List assignedIssues)
           
 Map initWorkloadMap(List assignedIssues)
           
 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
 

Constructor Detail

DeveloperWorkloadReport

public DeveloperWorkloadReport(ProjectManager projectManager,
                               ApplicationProperties applicationProperties)
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

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

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

formatPrettyDuration

public String formatPrettyDuration(Long v)
this formatting function is shared by the full view for navigator as well as view issue.

Parameters:
v - duration in seconds

getHoursPerDay

protected int getHoursPerDay()

getDaysPerWeek

protected int getDaysPerWeek()

initAssignedIssues

public List initAssignedIssues(User remoteUser,
                               User developer)
                        throws org.ofbiz.core.entity.GenericEntityException
Retrieves the list of the issues that are currently assigned to the specified developer issue must be unresolved

Throws:
org.ofbiz.core.entity.GenericEntityException

initCountMap

public Map initCountMap(List assignedIssues)
                 throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

initWorkloadMap

public Map initWorkloadMap(List assignedIssues)
                    throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getTotalIssuesCount

public Long getTotalIssuesCount(Map countMap)
                         throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getTotalWorkload

public Long getTotalWorkload(Map workloadMap)
                      throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjectName

public String getProjectName(String pid)
                      throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException


Copyright © 2002-2006 Atlassian. All Rights Reserved.