public class Latest25FiveBuildResultsFilter extends Object implements BuildResultsFilter
Constructor and Description |
---|
Latest25FiveBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager,
PlanManager planManager,
ResultsSummaryManager resultsSummaryManager) |
Modifier and Type | Method and Description |
---|---|
@NotNull List<BuildResultsSummary> |
getBuildResultsForAgent(Long agentId)
Obtain a collection of
BuildResultsSummary
for a specified agentId containint most recent 25 builds. |
@NotNull List<BuildResultsSummary> |
getBuildResultsForBuild(ImmutableBuildable buildable)
Deprecated.
since 2.7
|
String |
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 of
ResultsSummary for the specified plan
The number returned will depend on the filter applied. |
public Latest25FiveBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager, PlanManager planManager, ResultsSummaryManager resultsSummaryManager)
public String getLabel()
getLabel
in interface BuildResultsFilter
public String getCookieKey()
BuildResultsFilter
getCookieKey
in interface BuildResultsFilter
@Deprecated @NotNull public @NotNull List<BuildResultsSummary> getBuildResultsForBuild(ImmutableBuildable buildable)
BuildResultsSummary
objects for the
given build.getBuildResultsForBuild
in interface BuildResultsFilter
buildable
- @NotNull public @NotNull List<ResultsSummary> getResultsForPlan(ImmutablePlan plan)
BuildResultsFilter
ResultsSummary
for the specified plan
The number returned will depend on the filter applied.getResultsForPlan
in interface BuildResultsFilter
plan
- to get results for@NotNull public @NotNull List<BuildResultsSummary> getBuildResultsForAgent(Long agentId)
BuildResultsSummary
for a specified agentId containint most recent 25 builds.getBuildResultsForAgent
in interface BuildResultsFilter
agentId
- if of an agentpublic Date getFromDate()
BuildResultsFilter
getFromDate
in interface BuildResultsFilter
public int getFromBuildNumber(@NotNull @NotNull PlanKey planKey)
BuildResultsFilter
getFromBuildNumber
in interface BuildResultsFilter
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.