Class TimeAgoBuildResultsFilter
java.lang.Object
com.atlassian.bamboo.builder.resultsfilter.TimeAgoBuildResultsFilter
- All Implemented Interfaces:
BuildResultsFilter
-
Constructor Summary
ConstructorsConstructorDescriptionTimeAgoBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager, PlanManager planManager, ResultsSummaryManager resultsSummaryManager, int days) -
Method Summary
Modifier and TypeMethodDescription@NotNull List<BuildResultsSummary>getBuildResultsForAgent(Long agentId) Obtain a collection ofBuildResultsSummaryfor a specified agentId that are not older than certain date.@NotNull List<BuildResultsSummary>getBuildResultsForBuild(@Nullable ImmutableBuildable buildable) Deprecated.since 2.7The 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.Lower bound date to filter by.getLabel()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 Details
-
TimeAgoBuildResultsFilter
public TimeAgoBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager, PlanManager planManager, ResultsSummaryManager resultsSummaryManager, int days)
-
-
Method Details
-
getLabel
Description copied from interface:BuildResultsFilterThe filter's label in the gui- Specified by:
getLabelin interfaceBuildResultsFilter- Returns:
- The text to appear in the web drop down
-
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.7Description copied from interface:BuildResultsFilterObtain a collection ofBuildResultsSummaryfor a specified build. The number returned will depend on the filter applied.- Specified by:
getBuildResultsForBuildin interfaceBuildResultsFilter- Parameters:
buildable- - plan to get results for- Returns:
- The filtered list 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
Obtain a collection ofBuildResultsSummaryfor a specified agentId that are not older than certain date.- Specified by:
getBuildResultsForAgentin interfaceBuildResultsFilter- Parameters:
agentId- if of an agent- Returns:
- The filtered list of build result summaries
-
getFromDate
Description copied from interface:BuildResultsFilterLower bound date to filter by. Null if not a date filter- Specified by:
getFromDatein interfaceBuildResultsFilter- Returns:
-
getFromBuildNumber
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:
-