|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 | |
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 |
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 Map getParams(ProjectActionSupport action, Map reqParams) throws PermissionException, org.ofbiz.core.entity.GenericEntityException, SearchException
PermissionException
org.ofbiz.core.entity.GenericEntityException
SearchException
public String generateReportHtml(ProjectActionSupport action, Map reqParams) throws Exception
Report
Exception
public String generateReportExcel(ProjectActionSupport action, Map reqParams) throws Exception
AbstractReport
generateReportExcel
in interface Report
generateReportExcel
in class AbstractReport
Exception
public boolean isExcelViewSupported()
AbstractReport
isExcelViewSupported
in interface Report
isExcelViewSupported
in class AbstractReport
public void validate(ProjectActionSupport action, Map params)
Report
Any errors should be added to the action errors.
validate
in interface Report
validate
in class AbstractReport
public Collection getProjectVersionIds(org.ofbiz.core.entity.GenericValue project) throws Exception
Exception
public Collection getReportIssues(User user, Long projectId, Long versionId, String sortingOrder, String completedFilter) throws SearchException
SearchException
public String getNiceTimeDuration(org.ofbiz.core.entity.GenericValue issue, String field)
public String getOriginalEstTot()
public String getTimeSpentTot()
public String getTimeEstTot()
public String getAccuracyTot()
public 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(Long originalEst, Long timeEst, Long timeSpent)
public 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)
protected I18nBean getI18nBean()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |