com.atlassian.bamboo.author.collector
Class AbstractAuthorReportCollector

java.lang.Object
  extended by com.atlassian.bamboo.author.collector.AbstractAuthorReportCollector
Direct Known Subclasses:
AuthorBuildsBrokenCollector, AuthorBuildsFailedCollector, AuthorBuildsFixedCollector, AuthorBuildsTriggeredCollector, AuthorSuccessRatioCollector

public abstract class AbstractAuthorReportCollector
extends java.lang.Object


Constructor Summary
AbstractAuthorReportCollector()
           
 
Method Summary
protected  java.util.List<org.jfree.data.time.RegularTimePeriod> getAllPeriodsBetweenDates(java.util.Date earliest, java.util.Date latest)
           
 java.util.Map<java.lang.String,java.util.List<ResultsSummary>> getAuthorBuilds()
           
protected  java.lang.String getAutoDate(java.util.Date startDate, java.util.Date lastDate)
           
protected abstract  TimePeriodCollater getCollater()
           
 org.jfree.data.general.Dataset getDataSet()
           
protected  java.util.Date getEarliestBuildDate(java.util.List<ResultsSummary> results)
           
protected  java.util.Date getLatestbuildDate(java.util.List<ResultsSummary> results)
           
 java.util.Map<java.lang.String,java.lang.String[]> getParams()
           
protected  org.jfree.data.time.RegularTimePeriod getPeriod(java.util.Date date, java.lang.String periodRange)
           
 java.lang.String getPeriodRange()
           
protected  boolean isInPeriod(org.jfree.data.time.RegularTimePeriod time, java.util.Date date)
           
protected  org.jfree.data.time.TimeTableXYDataset populateDataSet(java.util.Collection<ResultsSummary> results, org.jfree.data.time.TimeTableXYDataset dataset, java.lang.String seriesName)
           
 void setAuthorBuilds(java.util.Map<java.lang.String,java.util.List<ResultsSummary>> authorBuilds)
           
 void setParams(java.util.Map<java.lang.String,java.lang.String[]> params)
           
protected  void writeCollaterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset, TimePeriodCollater collater)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAuthorReportCollector

public AbstractAuthorReportCollector()
Method Detail

getDataSet

public org.jfree.data.general.Dataset getDataSet()

populateDataSet

protected org.jfree.data.time.TimeTableXYDataset populateDataSet(java.util.Collection<ResultsSummary> results,
                                                                 org.jfree.data.time.TimeTableXYDataset dataset,
                                                                 java.lang.String seriesName)

getCollater

protected abstract TimePeriodCollater getCollater()

writeCollaterToDataSet

protected void writeCollaterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset,
                                      TimePeriodCollater collater)

getPeriodRange

public java.lang.String getPeriodRange()

getAutoDate

protected java.lang.String getAutoDate(java.util.Date startDate,
                                       java.util.Date lastDate)

getAllPeriodsBetweenDates

protected java.util.List<org.jfree.data.time.RegularTimePeriod> getAllPeriodsBetweenDates(java.util.Date earliest,
                                                                                          java.util.Date latest)

getEarliestBuildDate

protected java.util.Date getEarliestBuildDate(java.util.List<ResultsSummary> results)

getLatestbuildDate

protected java.util.Date getLatestbuildDate(java.util.List<ResultsSummary> results)

isInPeriod

protected boolean isInPeriod(org.jfree.data.time.RegularTimePeriod time,
                             java.util.Date date)

getPeriod

protected org.jfree.data.time.RegularTimePeriod getPeriod(java.util.Date date,
                                                          java.lang.String periodRange)

getParams

public java.util.Map<java.lang.String,java.lang.String[]> getParams()

setParams

public void setParams(java.util.Map<java.lang.String,java.lang.String[]> params)

getAuthorBuilds

public java.util.Map<java.lang.String,java.util.List<ResultsSummary>> getAuthorBuilds()

setAuthorBuilds

public void setAuthorBuilds(java.util.Map<java.lang.String,java.util.List<ResultsSummary>> authorBuilds)


Copyright © 2011 Atlassian. All Rights Reserved.