com.pyxis.greenhopper.jira.boards.stats
Class DataSummary
java.lang.Object
com.pyxis.greenhopper.jira.boards.stats.DataSummary
- All Implemented Interfaces:
- Summary
public class DataSummary
- extends java.lang.Object
- implements Summary
Model implementation for summary/statistical data. This is a transitional
class, while most of the business logic for fetching statistics still
resides within the summary classes themselves.
Over time, summary should move to become pure model, while the business
logic is refactored into StatService
. For the meantime, methods
that are not yet changed will throw a NotImplementedException
.
- Author:
- ahennecke
Fields inherited from interface com.pyxis.greenhopper.jira.boards.stats.Summary |
EMPTY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSummary
public DataSummary()
incrementDone
public void incrementDone()
incrementToDo
public void incrementToDo()
incrementTotal
public void incrementTotal()
incrementUnresolved
public void incrementUnresolved()
incrementType
public void incrementType(java.lang.String issueType)
incrementOriginalEstimate
public void incrementOriginalEstimate(long time)
incrementTimeSpent
public void incrementTimeSpent(long time)
setOriginalEstimate
public void setOriginalEstimate(long originalEstimate)
setTimeSpent
public void setTimeSpent(long timeSpent)
incrementFieldValue
public void incrementFieldValue(WatchedField field,
double value)
getDone
public int getDone()
- Specified by:
getDone
in interface Summary
setDone
public void setDone(int done)
getToDo
public int getToDo()
- Specified by:
getToDo
in interface Summary
setToDo
public void setToDo(int toDo)
getTotalIssues
public int getTotalIssues()
- Specified by:
getTotalIssues
in interface Summary
getIssueTypesStats
public java.util.Map<java.lang.String,java.lang.Integer> getIssueTypesStats()
- Specified by:
getIssueTypesStats
in interface Summary
setTotalIssues
public void setTotalIssues(int totalIssues)
getUnresolved
public int getUnresolved()
- Specified by:
getUnresolved
in interface Summary
setUnresolved
public void setUnresolved(int unresolved)
getInProgress
public int getInProgress()
- Specified by:
getInProgress
in interface Summary
getResolved
public int getResolved()
- Specified by:
getResolved
in interface Summary
getTodoRatio
public int getTodoRatio()
- Specified by:
getTodoRatio
in interface Summary
getInProgressRatio
public int getInProgressRatio()
- Specified by:
getInProgressRatio
in interface Summary
getDoneRatio
public int getDoneRatio()
- Specified by:
getDoneRatio
in interface Summary
getWatchedValue
public java.lang.Double getWatchedValue(WatchedField watchedField)
- Specified by:
getWatchedValue
in interface Summary
setWatchedValue
public void setWatchedValue(WatchedField watchedField,
java.lang.Double value)
getTotalEstimate
public java.lang.String getTotalEstimate()
- Specified by:
getTotalEstimate
in interface Summary
getTotalSpent
public java.lang.String getTotalSpent()
- Specified by:
getTotalSpent
in interface Summary
getRenderedWatchedValue
public java.lang.String getRenderedWatchedValue(WatchedField watchedField)
- Specified by:
getRenderedWatchedValue
in interface Summary
addSummary
public void addSummary(DataSummary other)
- Adds values of another summary object to this object.
getTotalOpenIssue
public int getTotalOpenIssue(java.util.Date before)
- Specified by:
getTotalOpenIssue
in interface Summary
getTotalRemainingValue
public java.lang.Double getTotalRemainingValue()
- Specified by:
getTotalRemainingValue
in interface Summary
getTotalRemaining
public java.lang.String getTotalRemaining()
- Specified by:
getTotalRemaining
in interface Summary
Copyright © 2007-2014 Atlassian. All Rights Reserved.