com.atlassian.bamboo.builder.resultsfilter
Class TodaysBuildResultsFilter

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

public class TodaysBuildResultsFilter
extends java.lang.Object
implements BuildResultsFilter

This class filters a build build results to only show todays results.

Version:
$Id: TodaysBuildResultsFilter.java,v 1.3 2005/01/16 22:57:31 andy Exp $

Constructor Summary
TodaysBuildResultsFilter()
           
 
Method Summary
 java.util.List<ExtendedBuildResultsSummary> getBuildResultsForAgent(BuildResultsSummaryManager buildResultsSummaryManager, java.lang.Long agentId)
          Obtain a collection of ExtendedBuildResultsSummary for a specified agentId.
 java.util.List<BuildResultsSummary> getBuildResultsForBuild(Build build)
          Obtain the given build's BuildResultsSummary for today.
 java.lang.String getCookieKey()
          The key to store in the cookie.
 java.lang.String getLabel()
          What label appears in the GUI for this strategy?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TodaysBuildResultsFilter

public TodaysBuildResultsFilter()
Method Detail

getLabel

public java.lang.String getLabel()
What label appears in the GUI for this strategy?

Specified by:
getLabel in interface BuildResultsFilter
Returns:
The descriptive 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:

getBuildResultsForBuild

@NotNull
public java.util.List<BuildResultsSummary> getBuildResultsForBuild(Build build)
Obtain the given build's BuildResultsSummary for today.

Specified by:
getBuildResultsForBuild in interface BuildResultsFilter
Parameters:
build - The build
Returns:
The collection of build results that occurred today

getBuildResultsForAgent

@NotNull
public java.util.List<ExtendedBuildResultsSummary> getBuildResultsForAgent(BuildResultsSummaryManager buildResultsSummaryManager,
                                                                                   java.lang.Long agentId)
Description copied from interface: BuildResultsFilter
Obtain a collection of ExtendedBuildResultsSummary for a specified agentId. The number returned will depend on the filter applied.

Specified by:
getBuildResultsForAgent in interface BuildResultsFilter
Parameters:
buildResultsSummaryManager - The reference to object performing data retrieval.
agentId - if of an agent
Returns:
The filtered list of build result summaries


Copyright © 2010 Atlassian. All Rights Reserved.