com.atlassian.bamboo.builder.resultsfilter
Class AllBuildResultsFilter

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

public class AllBuildResultsFilter
extends java.lang.Object
implements BuildResultsFilter

This class displays all the build results for a particular build

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

Constructor Summary
AllBuildResultsFilter(ResultsSummaryManager resultsSummaryManager, PlanManager planManager)
           
 
Method Summary
 java.util.List<BuildResultsSummary> getBuildResultsForAgent(java.lang.Long agentId)
          Obtain a collection of all BuildResultsSummary for a specified agentId.
 java.util.List<BuildResultsSummary> getBuildResultsForBuild(ImmutableBuildable buildable)
          Deprecated. since 2.7 use #getResultsForPlan(Plan) instead
 java.lang.String getCookieKey()
          The key to store in the cookie.
 int getFromBuildNumber(PlanKey planKey)
          The build number (inclusive) that extrenal callers can use to filter for a given plan.
 java.util.Date getFromDate()
          Lower bound date to filter by.
 java.lang.String getLabel()
          The filter's label in the gui
 java.util.List<ResultsSummary> getResultsForPlan(ImmutablePlan 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

AllBuildResultsFilter

public AllBuildResultsFilter(ResultsSummaryManager resultsSummaryManager,
                             PlanManager planManager)
Method Detail

getLabel

public java.lang.String getLabel()
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
                                                                                      ImmutableBuildable buildable)
Deprecated. since 2.7 use #getResultsForPlan(Plan) instead

Obtain all the BuildResultsSummary objects for the

Specified by:
getBuildResultsForBuild in interface BuildResultsFilter
Parameters:
buildable -
Returns:
The collection of build result summaries

getResultsForPlan

@NotNull
public java.util.List<ResultsSummary> getResultsForPlan(@Nullable
                                                                ImmutablePlan 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 all BuildResultsSummary for a specified agentId.

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

getFromDate

public java.util.Date getFromDate()
Description copied from interface: BuildResultsFilter
Lower bound date to filter by. Null if not a date filter

Specified by:
getFromDate in interface BuildResultsFilter
Returns:

getFromBuildNumber

public int getFromBuildNumber(PlanKey planKey)
Description copied from interface: BuildResultsFilter
The build number (inclusive) that extrenal callers can use to filter for a given plan. 0 if not filtered by number

Specified by:
getFromBuildNumber in interface BuildResultsFilter
Returns:


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.