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)  java.util.Map user2Issues
           
(package private)  java.util.Map user2RemainingTime
           
 
Fields inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
descriptor
 
Constructor Summary
VersionWorkloadReport(VersionManager versionManager, IssueManager issueManager, ConstantsManager constantsManager, ApplicationProperties applicationProperties)
           
 
Method Summary
 java.lang.String generateReportHtml(ProjectActionSupport action, java.util.Map reqParams)
          Generate the report's HTML - usually from the Velocity resource named "html".
 java.util.Collection getAssignees()
           
 java.util.Collection getIssuesByType(java.lang.String user, java.lang.String type)
           
 java.lang.String getNiceTimeDuration(org.ofbiz.core.entity.GenericValue issue, java.lang.String field)
           
 java.lang.String getRemainingTime(java.lang.String assignee)
           
 java.lang.String getTotalEstimate(java.util.List issues)
           
 java.util.Collection loadIssues(com.opensymphony.user.User remoteUser, java.lang.String versionId)
           
 java.util.Collection loadIssueTypes()
           
 boolean showReport()
          Whether or not to show this report in the interface.
 java.util.Map sortUserIssues(java.util.Collection issues)
           
 java.util.Map sortUserTime(java.util.Collection issues)
           
 void validate(ProjectActionSupport action, java.util.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, init, isExcelViewSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user2Issues

java.util.Map user2Issues

user2RemainingTime

java.util.Map user2RemainingTime
Constructor Detail

VersionWorkloadReport

public VersionWorkloadReport(VersionManager versionManager,
                             IssueManager issueManager,
                             ConstantsManager constantsManager,
                             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

generateReportHtml

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

Throws:
java.lang.Exception

validate

public void validate(ProjectActionSupport action,
                     java.util.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 java.util.Collection loadIssues(com.opensymphony.user.User remoteUser,
                                       java.lang.String versionId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

loadIssueTypes

public java.util.Collection loadIssueTypes()

sortUserIssues

public java.util.Map sortUserIssues(java.util.Collection issues)
                             throws java.lang.Exception
Throws:
java.lang.Exception

sortUserTime

public java.util.Map sortUserTime(java.util.Collection issues)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getAssignees

public java.util.Collection getAssignees()

getIssuesByType

public java.util.Collection getIssuesByType(java.lang.String user,
                                            java.lang.String type)

getTotalEstimate

public java.lang.String getTotalEstimate(java.util.List issues)

getRemainingTime

public java.lang.String getRemainingTime(java.lang.String assignee)

getNiceTimeDuration

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


Copyright © 2002-2005 Atlassian. All Rights Reserved.