|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.plugin.report.impl.AbstractReport
com.atlassian.jira.plugin.report.impl.TimeTrackingReport
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 | |
java.lang.String |
generateReportExcel(ProjectActionSupport action,
java.util.Map reqParams)
By default, will throw an UnsuppportedOperationException as reports don't support Excel by default. |
java.lang.String |
generateReportHtml(ProjectActionSupport action,
java.util.Map reqParams)
Generate the report's HTML - usually from the Velocity resource named "html". |
int |
getAccuracyPercentage()
|
java.lang.String |
getAccuracyTot()
|
int |
getCompletionPercentage()
|
long |
getDurationInMinutes(long seconds)
|
static long |
getLongAccuracy(long originalEst,
long timeEst,
long timeSpent)
|
static int |
getLongAccuracyPercentage(long originalEst,
long timeEst,
long timeSpent)
|
java.lang.String |
getNiceAccuracy(org.ofbiz.core.entity.GenericValue issue)
Generate a nice accuracy string |
java.lang.String |
getNiceTimeDuration(org.ofbiz.core.entity.GenericValue issue,
java.lang.String field)
|
java.lang.String |
getOriginalEstTot()
|
java.util.Map |
getParams(ProjectActionSupport action,
java.util.Map reqParams)
|
java.util.Collection |
getProjectVersionIds(org.ofbiz.core.entity.GenericValue project)
Get a collection of all version ids in the selected project |
java.util.Collection |
getReportIssues(com.opensymphony.user.User user,
java.lang.Long projectId,
java.lang.Long versionId,
java.lang.String sortingOrder,
java.lang.String completedFilter)
Get the list of issues to be displayed in the report |
java.lang.String |
getTimeEstTot()
|
java.lang.String |
getTimeSpentTot()
|
java.lang.String |
getTotalCurrentEst()
|
boolean |
isExcelViewSupported()
By default, reports do not have an Excel view. |
int |
isOnSchedeule(java.lang.Long originalEst,
java.lang.Long timeEst,
java.lang.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,
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 |
getDescriptor, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
TimeTrackingSummaryBean summaryBean
Constructor Detail |
public TimeTrackingReport(VersionManager versionManager, ApplicationProperties applicationProperties, IssueManager issueManager, ConstantsManager constantsManager)
Method Detail |
public boolean showReport()
AbstractReport
showReport
in interface Report
showReport
in class AbstractReport
public java.util.Map getParams(ProjectActionSupport action, java.util.Map reqParams) throws PermissionException, org.ofbiz.core.entity.GenericEntityException, SearchException
PermissionException
org.ofbiz.core.entity.GenericEntityException
SearchException
public java.lang.String generateReportHtml(ProjectActionSupport action, java.util.Map reqParams) throws java.lang.Exception
Report
java.lang.Exception
public java.lang.String generateReportExcel(ProjectActionSupport action, java.util.Map reqParams) throws java.lang.Exception
AbstractReport
generateReportExcel
in interface Report
generateReportExcel
in class AbstractReport
java.lang.Exception
public boolean isExcelViewSupported()
AbstractReport
isExcelViewSupported
in interface Report
isExcelViewSupported
in class AbstractReport
public void validate(ProjectActionSupport action, java.util.Map params)
Report
Any errors should be added to the action errors.
validate
in interface Report
validate
in class AbstractReport
public java.util.Collection getProjectVersionIds(org.ofbiz.core.entity.GenericValue project) throws java.lang.Exception
java.lang.Exception
public java.util.Collection getReportIssues(com.opensymphony.user.User user, java.lang.Long projectId, java.lang.Long versionId, java.lang.String sortingOrder, java.lang.String completedFilter) throws SearchException
SearchException
public java.lang.String getNiceTimeDuration(org.ofbiz.core.entity.GenericValue issue, java.lang.String field)
public java.lang.String getOriginalEstTot()
public java.lang.String getTimeSpentTot()
public java.lang.String getTimeEstTot()
public java.lang.String getAccuracyTot()
public java.lang.String getTotalCurrentEst()
public long getDurationInMinutes(long seconds)
public int getCompletionPercentage()
public int getAccuracyPercentage()
public int isTotalOnSchedule()
public int isOnSchedule(org.ofbiz.core.entity.GenericValue issue)
public int isOnSchedeule(java.lang.Long originalEst, java.lang.Long timeEst, java.lang.Long timeSpent)
public java.lang.String getNiceAccuracy(org.ofbiz.core.entity.GenericValue issue)
issue
-
public static long getLongAccuracy(long originalEst, long timeEst, long timeSpent)
public static int getLongAccuracyPercentage(long originalEst, long timeEst, long timeSpent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |