com.atlassian.bamboo.builder.resultsfilter
Class TimeAgoBuildResultsFilter

java.lang.Object
  extended by com.atlassian.bamboo.builder.resultsfilter.TimeAgoBuildResultsFilter
All Implemented Interfaces:
BuildResultsFilter

public class TimeAgoBuildResultsFilter
extends java.lang.Object
implements BuildResultsFilter


Constructor Summary
TimeAgoBuildResultsFilter(ResultsSummaryManager resultsSummaryManager, PlanManager planManager, int days)
           
 
Method Summary
 java.util.List<BuildResultsSummary> getBuildResultsForAgent(java.lang.Long agentId)
          Obtain a collection of BuildResultsSummary for a specified agentId that are not older than certain date.
 java.util.List<BuildResultsSummary> getBuildResultsForBuild(Buildable buildable)
          Deprecated. 
 java.lang.String getCookieKey()
          The key to store in the cookie.
 java.lang.String getLabel()
          The filter's label in the gui
 java.util.List<ResultsSummary> getResultsForPlan(Plan plan)
          Obtain a collection of ResultsSummary for the specified plan The number returned will depend on the filter applied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeAgoBuildResultsFilter

public TimeAgoBuildResultsFilter(ResultsSummaryManager resultsSummaryManager,
                                 PlanManager planManager,
                                 int days)
Method Detail

getLabel

public java.lang.String getLabel()
Description copied from interface: BuildResultsFilter
The filter's label in the gui

Specified by:
getLabel in interface BuildResultsFilter
Returns:
The text to appear in the web drop down

getCookieKey

public java.lang.String getCookieKey()
Description copied from interface: BuildResultsFilter
The key to store in the cookie.

Specified by:
getCookieKey in interface BuildResultsFilter
Returns:
the cookie key for this filter.

getBuildResultsForBuild

@Deprecated
@NotNull
public java.util.List<BuildResultsSummary> getBuildResultsForBuild(@Nullable
                                                                                      Buildable buildable)
Deprecated. 

Description copied from interface: BuildResultsFilter
Obtain a collection of BuildResultsSummary for a specified build. The number returned will depend on the filter applied.

Specified by:
getBuildResultsForBuild in interface BuildResultsFilter
Parameters:
buildable - - plan to get results for
Returns:
The filtered list of build result summaries

getResultsForPlan

@NotNull
public java.util.List<ResultsSummary> getResultsForPlan(@Nullable
                                                                Plan plan)
Description copied from interface: BuildResultsFilter
Obtain a collection of ResultsSummary for the specified plan The number returned will depend on the filter applied.

Specified by:
getResultsForPlan in interface BuildResultsFilter
Parameters:
plan - to get results for
Returns:
The filtered list of build result summaries

getBuildResultsForAgent

@NotNull
public java.util.List<BuildResultsSummary> getBuildResultsForAgent(java.lang.Long agentId)
Obtain a collection of BuildResultsSummary for a specified agentId that are not older than certain date.

Specified by:
getBuildResultsForAgent in interface BuildResultsFilter
Parameters:
agentId - if of an agent
Returns:
The filtered list of build result summaries


Copyright © 2012 Atlassian. All Rights Reserved.