Interface BuildResultsFilter
- All Known Implementing Classes:
AllBuildResultsFilter
,Latest25FiveBuildResultsFilter
,TimeAgoBuildResultsFilter
public interface BuildResultsFilter
This interface represents a filter for selecting which of a build's
BuildResultsSummary
objects
a user would like to see displayed.-
Method Summary
Modifier and TypeMethodDescription@NotNull List<BuildResultsSummary>
getBuildResultsForAgent
(Long agentId) Obtain a collection ofBuildResultsSummary
for a specified agentId.@NotNull List<BuildResultsSummary>
getBuildResultsForBuild
(@Nullable ImmutableBuildable buildable) Deprecated.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.@Nullable Date
Lower bound date to filter by.getLabel()
The filter's label in the gui@NotNull List<ResultsSummary>
getResultsForPlan
(@Nullable ImmutablePlan plan) Obtain a collection ofResultsSummary
for the specified plan The number returned will depend on the filter applied.
-
Method Details
-
getLabel
String getLabel()The filter's label in the gui- Returns:
- The text to appear in the web drop down
-
getCookieKey
String getCookieKey()The key to store in the cookie.- Returns:
- the cookie key for this filter.
-
getBuildResultsForBuild
@Deprecated @NotNull @NotNull List<BuildResultsSummary> getBuildResultsForBuild(@Nullable @Nullable ImmutableBuildable buildable) Deprecated.since 2.7 usegetResultsForPlan(ImmutablePlan)
insteadObtain a collection ofBuildResultsSummary
for a specified build. The number returned will depend on the filter applied.- Parameters:
buildable
- - plan to get results for- Returns:
- The filtered list of build result summaries
-
getResultsForPlan
Obtain a collection ofResultsSummary
for the specified plan The number returned will depend on the filter applied.- Parameters:
plan
- to get results for- Returns:
- The filtered list of build result summaries
-
getBuildResultsForAgent
Obtain a collection ofBuildResultsSummary
for a specified agentId. The number returned will depend on the filter applied.- Parameters:
agentId
- if of an agent- Returns:
- The filtered list of build result summaries
-
getFromBuildNumber
The build number (inclusive) that extrenal callers can use to filter for a given plan. 0 if not filtered by number- Parameters:
planKey
-- Returns:
-
getFromDate
Lower bound date to filter by. Null if not a date filter- Returns:
-
getResultsForPlan(ImmutablePlan)
instead