Class Latest25FiveBuildResultsFilter
- java.lang.Object
-
- com.atlassian.bamboo.builder.resultsfilter.Latest25FiveBuildResultsFilter
-
- All Implemented Interfaces:
BuildResultsFilter
public class Latest25FiveBuildResultsFilter extends Object implements BuildResultsFilter
This class provides a the latest 25 build result summaries for a given build.- Version:
- $Id: Latest25FiveBuildResultsFilter.java,v 1.3 2005/01/16 22:57:31 andy Exp $
-
-
Constructor Summary
Constructors Constructor Description Latest25FiveBuildResultsFilter(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 ofBuildResultsSummary
for a specified agentId containint most recent 25 builds.@NotNull List<BuildResultsSummary>
getBuildResultsForBuild(ImmutableBuildable buildable)
Deprecated.since 2.7String
getCookieKey()
The key to store in the cookie.int
getFromBuildNumber(@NotNull PlanKey planKey)
The build number (inclusive) that extrenal callers can use to filter for a given plan.Date
getFromDate()
Lower bound date to filter by.String
getLabel()
The filter's label in the gui@NotNull List<ResultsSummary>
getResultsForPlan(ImmutablePlan plan)
Obtain a collection ofResultsSummary
for the specified plan The number returned will depend on the filter applied.
-
-
-
Constructor Detail
-
Latest25FiveBuildResultsFilter
public Latest25FiveBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager, PlanManager planManager, ResultsSummaryManager resultsSummaryManager)
-
-
Method Detail
-
getLabel
public String getLabel()
The filter's label in the gui- Specified by:
getLabel
in interfaceBuildResultsFilter
- Returns:
- The text to appear in the web drop down
-
getCookieKey
public String getCookieKey()
Description copied from interface:BuildResultsFilter
The key to store in the cookie.- Specified by:
getCookieKey
in interfaceBuildResultsFilter
- Returns:
- the cookie key for this filter.
-
getBuildResultsForBuild
@Deprecated @NotNull public @NotNull List<BuildResultsSummary> getBuildResultsForBuild(ImmutableBuildable buildable)
Deprecated.since 2.7Obtain the most recent 25BuildResultsSummary
objects for the given build.- Specified by:
getBuildResultsForBuild
in interfaceBuildResultsFilter
- Parameters:
buildable
-- Returns:
- The latest 25 build result summaries
-
getResultsForPlan
@NotNull public @NotNull List<ResultsSummary> getResultsForPlan(ImmutablePlan plan)
Description copied from interface:BuildResultsFilter
Obtain a collection ofResultsSummary
for the specified plan The number returned will depend on the filter applied.- Specified by:
getResultsForPlan
in 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 ofBuildResultsSummary
for a specified agentId containint most recent 25 builds.- Specified by:
getBuildResultsForAgent
in interfaceBuildResultsFilter
- Parameters:
agentId
- if of an agent- Returns:
- The filtered list of build result summaries
-
getFromDate
public Date getFromDate()
Description copied from interface:BuildResultsFilter
Lower bound date to filter by. Null if not a date filter- Specified by:
getFromDate
in interfaceBuildResultsFilter
- Returns:
-
getFromBuildNumber
public int getFromBuildNumber(@NotNull @NotNull 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 interfaceBuildResultsFilter
- Returns:
-
-