Class AllBuildResultsFilter
- java.lang.Object
-
- com.atlassian.bamboo.builder.resultsfilter.AllBuildResultsFilter
-
- All Implemented Interfaces:
BuildResultsFilter
public class AllBuildResultsFilter extends 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
Constructors Constructor Description AllBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager, PlanManager planManager, ResultsSummaryManager resultsSummaryManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull List<BuildResultsSummary>getBuildResultsForAgent(Long agentId)Obtain a collection of allBuildResultsSummaryfor a specified agentId.@NotNull List<BuildResultsSummary>getBuildResultsForBuild(@Nullable ImmutableBuildable buildable)Deprecated.since 2.7 usegetResultsForPlan(ImmutablePlan)insteadStringgetCookieKey()The key to store in the cookie.intgetFromBuildNumber(@NotNull PlanKey planKey)The build number (inclusive) that extrenal callers can use to filter for a given plan.DategetFromDate()Lower bound date to filter by.StringgetLabel()The filter's label in the gui@NotNull List<ResultsSummary>getResultsForPlan(@Nullable ImmutablePlan plan)Obtain a collection ofResultsSummaryfor the specified plan The number returned will depend on the filter applied.
-
-
-
Constructor Detail
-
AllBuildResultsFilter
public AllBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager, PlanManager planManager, ResultsSummaryManager resultsSummaryManager)
-
-
Method Detail
-
getLabel
public String getLabel()
The filter's label in the gui- Specified by:
getLabelin interfaceBuildResultsFilter- Returns:
- The text to appear in the web drop down
-
getCookieKey
public String getCookieKey()
Description copied from interface:BuildResultsFilterThe key to store in the cookie.- Specified by:
getCookieKeyin interfaceBuildResultsFilter- Returns:
- the cookie key for this filter.
-
getBuildResultsForBuild
@Deprecated @NotNull public @NotNull List<BuildResultsSummary> getBuildResultsForBuild(@Nullable @Nullable ImmutableBuildable buildable)
Deprecated.since 2.7 usegetResultsForPlan(ImmutablePlan)insteadObtain all theBuildResultsSummaryobjects for the- Specified by:
getBuildResultsForBuildin interfaceBuildResultsFilter- Parameters:
buildable-- Returns:
- The collection of build result summaries
-
getResultsForPlan
@NotNull public @NotNull List<ResultsSummary> getResultsForPlan(@Nullable @Nullable ImmutablePlan plan)
Description copied from interface:BuildResultsFilterObtain a collection ofResultsSummaryfor the specified plan The number returned will depend on the filter applied.- Specified by:
getResultsForPlanin interfaceBuildResultsFilter- Parameters:
plan- to get results for- Returns:
- The filtered list of build result summaries
-
getBuildResultsForAgent
@NotNull public @NotNull List<BuildResultsSummary> getBuildResultsForAgent(Long agentId)
Obtain a collection of allBuildResultsSummaryfor a specified agentId.- Specified by:
getBuildResultsForAgentin interfaceBuildResultsFilter- Parameters:
agentId- if of an agent- Returns:
- The filtered list of build result summaries
-
getFromDate
public Date getFromDate()
Description copied from interface:BuildResultsFilterLower bound date to filter by. Null if not a date filter- Specified by:
getFromDatein interfaceBuildResultsFilter- Returns:
-
getFromBuildNumber
public int getFromBuildNumber(@NotNull @NotNull PlanKey planKey)Description copied from interface:BuildResultsFilterThe build number (inclusive) that extrenal callers can use to filter for a given plan. 0 if not filtered by number- Specified by:
getFromBuildNumberin interfaceBuildResultsFilter- Returns:
-
-