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

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

public class TimeTrackingReport
extends AbstractReport


Field Summary
(package private)  TimeTrackingSummaryBean summaryBean
           
 
Fields inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
descriptor
 
Constructor Summary
TimeTrackingReport(VersionManager versionManager, ApplicationProperties applicationProperties, IssueManager issueManager, ConstantsManager constantsManager)
           
 
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()
           
 String getAccuracyTot()
           
 int getCompletionPercentage()
           
 long getDurationInMinutes(long seconds)
           
protected  I18nBean getI18nBean()
           
static long getLongAccuracy(long originalEst, long timeEst, long timeSpent)
           
static int getLongAccuracyPercentage(long originalEst, long timeEst, long timeSpent)
           
 String getNiceAccuracy(org.ofbiz.core.entity.GenericValue issue)
          Generate a nice accuracy string
 String getNiceTimeDuration(org.ofbiz.core.entity.GenericValue issue, String field)
           
 String getOriginalEstTot()
           
 Map getParams(ProjectActionSupport action, Map reqParams)
           
 Collection getProjectVersionIds(org.ofbiz.core.entity.GenericValue project)
          Get a collection of all version ids in the selected project
 Collection getReportIssues(User user, Long projectId, Long versionId, String sortingOrder, String completedFilter)
          Get the list of issues to be displayed in the report
 String getTimeEstTot()
           
 String getTimeSpentTot()
           
 String getTotalCurrentEst()
           
 boolean isExcelViewSupported()
          By default, reports do not have an Excel view.
 int isOnSchedeule(Long originalEst, Long timeEst, Long timeSpent)
           
 int isOnSchedule(org.ofbiz.core.entity.GenericValue issue)
           
 int isTotalOnSchedule()
           
 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
 

Field Detail

summaryBean

TimeTrackingSummaryBean summaryBean
Constructor Detail

TimeTrackingReport

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

getParams

public Map getParams(ProjectActionSupport action,
                     Map reqParams)
              throws PermissionException,
                     org.ofbiz.core.entity.GenericEntityException,
                     SearchException
Throws:
PermissionException
org.ofbiz.core.entity.GenericEntityException
SearchException

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(org.ofbiz.core.entity.GenericValue project)
                                throws Exception
Get a collection of all version ids in the selected project

Throws:
Exception

getReportIssues

public Collection getReportIssues(User user,
                                  Long projectId,
                                  Long versionId,
                                  String sortingOrder,
                                  String completedFilter)
                           throws SearchException
Get the list of issues to be displayed in the report

Throws:
SearchException

getNiceTimeDuration

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

getOriginalEstTot

public String getOriginalEstTot()

getTimeSpentTot

public String getTimeSpentTot()

getTimeEstTot

public String getTimeEstTot()

getAccuracyTot

public String getAccuracyTot()

getTotalCurrentEst

public String getTotalCurrentEst()

getDurationInMinutes

public long getDurationInMinutes(long seconds)

getCompletionPercentage

public int getCompletionPercentage()

getAccuracyPercentage

public int getAccuracyPercentage()

isTotalOnSchedule

public int isTotalOnSchedule()

isOnSchedule

public int isOnSchedule(org.ofbiz.core.entity.GenericValue issue)

isOnSchedeule

public int isOnSchedeule(Long originalEst,
                         Long timeEst,
                         Long timeSpent)

getNiceAccuracy

public String getNiceAccuracy(org.ofbiz.core.entity.GenericValue issue)
Generate a nice accuracy string

Parameters:
issue -

getLongAccuracy

public static long getLongAccuracy(long originalEst,
                                   long timeEst,
                                   long timeSpent)

getLongAccuracyPercentage

public static int getLongAccuracyPercentage(long originalEst,
                                            long timeEst,
                                            long timeSpent)

getI18nBean

protected I18nBean getI18nBean()


Copyright © 2002-2006 Atlassian. All Rights Reserved.