com.atlassian.jira.imports.project.taskprogress
Class AbstractSubtaskProgressProcessor

java.lang.Object
  extended by com.atlassian.jira.imports.project.taskprogress.AbstractSubtaskProgressProcessor
Direct Known Subclasses:
EntityCountTaskProgressProcessor

public class AbstractSubtaskProgressProcessor
extends Object

Processes a complete percentage based on the inputs of a subtask and its progress.

Since:
v3.13

Constructor Summary
AbstractSubtaskProgressProcessor(TaskProgressInterval taskProgressInterval, int numEntities)
           
 
Method Summary
 int getNumEntities()
           
protected  long getOverallPercentageComplete(long entityCount)
          Gets the percentage taking into account the subtask that this was made with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSubtaskProgressProcessor

public AbstractSubtaskProgressProcessor(TaskProgressInterval taskProgressInterval,
                                        int numEntities)
Method Detail

getNumEntities

public int getNumEntities()

getOverallPercentageComplete

protected long getOverallPercentageComplete(long entityCount)
Gets the percentage taking into account the subtask that this was made with.

Parameters:
entityCount - the current entity count.
Returns:
the overall percentage that can be used to make progress on a task progress bean.


Copyright © 2002-2013 Atlassian. All Rights Reserved.