public class TimeAgoBuildResultsFilter extends Object implements BuildResultsFilter
| Constructor and Description |
|---|
TimeAgoBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager,
PlanManager planManager,
ResultsSummaryManager resultsSummaryManager,
int days) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull List<BuildResultsSummary> |
getBuildResultsForAgent(Long agentId)
Obtain a collection of
BuildResultsSummary
for a specified agentId that are not older than certain date. |
@NotNull List<BuildResultsSummary> |
getBuildResultsForBuild(@Nullable 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(@Nullable ImmutablePlan plan)
Obtain a collection of
ResultsSummary for the specified plan
The number returned will depend on the filter applied. |
public TimeAgoBuildResultsFilter(AgentResultsSummaryManager agentResultsSummaryManager, PlanManager planManager, ResultsSummaryManager resultsSummaryManager, int days)
public String getLabel()
BuildResultsFiltergetLabel in interface BuildResultsFilterpublic String getCookieKey()
BuildResultsFiltergetCookieKey in interface BuildResultsFilter@Deprecated @NotNull public @NotNull List<BuildResultsSummary> getBuildResultsForBuild(@Nullable @Nullable ImmutableBuildable buildable)
BuildResultsFilterBuildResultsSummary for
a specified build. The number returned will depend on the filter applied.getBuildResultsForBuild in interface BuildResultsFilterbuildable - - plan to get results for@NotNull public @NotNull List<ResultsSummary> getResultsForPlan(@Nullable @Nullable ImmutablePlan plan)
BuildResultsFilterResultsSummary for the specified plan
The number returned will depend on the filter applied.getResultsForPlan in interface BuildResultsFilterplan - to get results for@NotNull public @NotNull List<BuildResultsSummary> getBuildResultsForAgent(Long agentId)
BuildResultsSummary
for a specified agentId that are not older than certain date.getBuildResultsForAgent in interface BuildResultsFilteragentId - if of an agentpublic Date getFromDate()
BuildResultsFiltergetFromDate in interface BuildResultsFilterpublic int getFromBuildNumber(@NotNull
@NotNull PlanKey planKey)
BuildResultsFiltergetFromBuildNumber in interface BuildResultsFilterCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.