Interface BuildResultsFilter
-
- All Known Implementing Classes:
AllBuildResultsFilter
,Latest25FiveBuildResultsFilter
,TimeAgoBuildResultsFilter
public interface BuildResultsFilter
This interface represents a filter for selecting which of a build'sBuildResultsSummary
objects a user would like to see displayed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NotNull List<BuildResultsSummary>
getBuildResultsForAgent(Long agentId)
Obtain a collection ofBuildResultsSummary
for a specified agentId.@NotNull List<BuildResultsSummary>
getBuildResultsForBuild(@Nullable ImmutableBuildable buildable)
Deprecated.since 2.7 usegetResultsForPlan(ImmutablePlan)
insteadString
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.@Nullable Date
getFromDate()
Lower bound date to filter by.String
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 Detail
-
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
@NotNull @NotNull List<ResultsSummary> getResultsForPlan(@Nullable @Nullable ImmutablePlan plan)
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
@NotNull @NotNull List<BuildResultsSummary> getBuildResultsForAgent(Long agentId)
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
int getFromBuildNumber(@NotNull @NotNull PlanKey planKey)
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
@Nullable @Nullable Date getFromDate()
Lower bound date to filter by. Null if not a date filter- Returns:
-
-