com.atlassian.jira.web.action.browser
Class TimeTrackingReport

java.lang.Object
  extended byActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.web.action.JiraWebActionSupport
              extended bycom.atlassian.jira.web.action.ProjectActionSupport
                  extended bycom.atlassian.jira.web.action.IssueActionSupport
                      extended bycom.atlassian.jira.web.action.browser.TimeTrackingReport

public class TimeTrackingReport
extends IssueActionSupport

See Also:
Serialized Form

Field Summary
static java.lang.String FILTER_ALL_ISSUES
           
static java.lang.String FILTER_INCOMPLETE_ISSUES
           
static java.lang.String SORT_BY_LEAST_COMPLETED
           
static java.lang.String SORT_BY_MOST_COMPLETED
           
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, permissionManager, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
TimeTrackingReport()
           
 
Method Summary
 java.lang.String doDefault()
           
 java.lang.String doExcelView()
           
protected  java.lang.String doExecute()
           
protected  void doValidation()
           
 int getAccuracyPercentage()
           
 java.lang.String getAccuracyTot()
           
 java.lang.String getCompletedFilter()
           
 int getCompletionPercentage()
           
 long getDurationInMinutes(long seconds)
           
 java.util.Map getFilters()
           
static long getLongAccuracy(long originalEst, long timeEst, long timeSpent)
           
static java.lang.String getNiceAccuracy(GenericValue issue)
          Generate a nice accuracy string
static java.lang.String getNiceTimeDuration(GenericValue issue, java.lang.String field)
          Given an issue and a time-duration field, turn it into a "nice" display string
 java.lang.String getOriginalEstTot()
           
 GenericValue getProject()
           
 java.util.Map getProjectVersions()
          Get a map of all versions in the project selected in BrowseProject
 java.util.Collection getReportIssues()
           
 java.util.Map getSortingOptions()
           
 java.lang.String getSortingOrder()
           
 TimeTrackingSummaryBean getSummaryBean()
           
 java.lang.String getTimeEstTot()
           
 java.lang.String getTimeSpentTot()
           
 java.lang.String getTotalCurrentEst()
           
 java.lang.Long getVersionId()
           
 int isOnSchedeule(java.lang.Long originalEst, java.lang.Long timeEst, java.lang.Long timeSpent)
           
 int isOnSchedule(GenericValue issue)
           
 int isTotalOnSchedule()
           
 GenericValue selectedVersion()
           
 void setCompletedFilter(java.lang.String completedFilter)
           
 void setId(java.lang.Long id)
           
 void setSortingOrder(java.lang.String sortingOrder)
           
protected  void setSummaryBean(TimeTrackingSummaryBean summaryBean)
           
 void setVersionId(java.lang.Long versionId)
           
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getSelectedProject, getUrlEncoded, getWorkflow, isCustomFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSelectedProject, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDefaultAssignee, getField, getLocale, getOutlookDate, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getText, getText, getText, getText, getUserFullName, getUserPreferences, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, isIndexing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SORT_BY_MOST_COMPLETED

public static final java.lang.String SORT_BY_MOST_COMPLETED
See Also:
Constant Field Values

SORT_BY_LEAST_COMPLETED

public static final java.lang.String SORT_BY_LEAST_COMPLETED
See Also:
Constant Field Values

FILTER_ALL_ISSUES

public static final java.lang.String FILTER_ALL_ISSUES
See Also:
Constant Field Values

FILTER_INCOMPLETE_ISSUES

public static final java.lang.String FILTER_INCOMPLETE_ISSUES
See Also:
Constant Field Values
Constructor Detail

TimeTrackingReport

public TimeTrackingReport()
Method Detail

setId

public void setId(java.lang.Long id)
           throws PermissionException
Throws:
PermissionException

getProject

public GenericValue getProject()
                        throws PermissionException
Throws:
PermissionException

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Throws:
java.lang.Exception

doValidation

protected void doValidation()

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Throws:
java.lang.Exception

doExcelView

public java.lang.String doExcelView()
                             throws java.lang.Exception
Throws:
java.lang.Exception

getProjectVersions

public java.util.Map getProjectVersions()
                                 throws java.lang.Exception
Get a map of all versions in the project selected in BrowseProject

Returns:
Throws:
java.lang.Exception

isTotalOnSchedule

public int isTotalOnSchedule()

isOnSchedule

public int isOnSchedule(GenericValue issue)

isOnSchedeule

public int isOnSchedeule(java.lang.Long originalEst,
                         java.lang.Long timeEst,
                         java.lang.Long timeSpent)

getNiceTimeDuration

public static java.lang.String getNiceTimeDuration(GenericValue issue,
                                                   java.lang.String field)
Given an issue and a time-duration field, turn it into a "nice" display string

Parameters:
issue -
field -
Returns:

getNiceAccuracy

public static java.lang.String getNiceAccuracy(GenericValue issue)
Generate a nice accuracy string

Parameters:
issue -
Returns:

getLongAccuracy

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

selectedVersion

public GenericValue selectedVersion()
                             throws GenericEntityException
Throws:
GenericEntityException

getSortingOrder

public java.lang.String getSortingOrder()

setSortingOrder

public void setSortingOrder(java.lang.String sortingOrder)

getCompletedFilter

public java.lang.String getCompletedFilter()

setCompletedFilter

public void setCompletedFilter(java.lang.String completedFilter)

getVersionId

public java.lang.Long getVersionId()

setVersionId

public void setVersionId(java.lang.Long versionId)

getSortingOptions

public java.util.Map getSortingOptions()

getFilters

public java.util.Map getFilters()

getOriginalEstTot

public java.lang.String getOriginalEstTot()

getTimeSpentTot

public java.lang.String getTimeSpentTot()

getTimeEstTot

public java.lang.String getTimeEstTot()

getAccuracyTot

public java.lang.String getAccuracyTot()

getTotalCurrentEst

public java.lang.String getTotalCurrentEst()

getDurationInMinutes

public long getDurationInMinutes(long seconds)

getCompletionPercentage

public int getCompletionPercentage()

getAccuracyPercentage

public int getAccuracyPercentage()

getReportIssues

public java.util.Collection getReportIssues()

getSummaryBean

public TimeTrackingSummaryBean getSummaryBean()

setSummaryBean

protected void setSummaryBean(TimeTrackingSummaryBean summaryBean)