public class PlanResultSearcherImpl extends Object implements PlanResultSearcher
Constructor and Description |
---|
PlanResultSearcherImpl(@NotNull BuildResultsSummaryDao buildResultsSummaryDao) |
Modifier and Type | Method and Description |
---|---|
long |
countByJiraCriteria(@NotNull ByJiraIssueResultSearchCriteria jiraCriteria,
@NotNull ResultSummarySearchCriteria criteria) |
<T extends ResultsSummary> |
findByAuthors(@NotNull Collection<ExtendedAuthor> authors,
@NotNull Class<T> resultClass,
int maxResults)
Search for result summaries by commit authors.
|
@NotNull List<ResultsSummary> |
findByCriteria(@NotNull ResultSummarySearchCriteria criteria)
Searches for any
ResultsSummary object given a ResultSummarySearchCriteria . |
<T extends ResultsSummary> |
findByCriteria(@NotNull ResultSummarySearchCriteria criteria,
@NotNull Class<T> resultClass)
Searches for any
ResultsSummary object given a ResultSummarySearchCriteria . |
List<ChainResultsSummary> |
findByJiraCriteria(@NotNull ByJiraIssueResultSearchCriteria jiraCriteria,
@NotNull ResultSummarySearchCriteria criteria) |
<T extends PlanKeyProvider> |
findByJiraCriteriaAndTransform(@NotNull ByJiraIssueResultSearchCriteria jiraCriteria,
@NotNull ResultSummarySearchCriteria criteria,
@NotNull Function<ChainResultsSummary,T> transformation)
Find
ChainResultsSummary relevant to given set of Jira issue keys and apply transformation. |
@Nullable ChainResultsSummary |
findLatestRelevantBuildResult(@NotNull PlanKey planKey,
long beforeLastCompletedTimestamp)
Find the last finished build of a plan that completed before given time
|
public PlanResultSearcherImpl(@NotNull @NotNull BuildResultsSummaryDao buildResultsSummaryDao)
@NotNull public <T extends ResultsSummary> @NotNull List<T> findByAuthors(@NotNull @NotNull Collection<ExtendedAuthor> authors, @NotNull @NotNull Class<T> resultClass, int maxResults)
findByAuthors
in interface PlanResultSearcher
@NotNull public @NotNull List<ResultsSummary> findByCriteria(@NotNull @NotNull ResultSummarySearchCriteria criteria)
PlanResultSearcher
ResultsSummary
object given a ResultSummarySearchCriteria
.
Results are either sorted by build date (newest first) or unordered.findByCriteria
in interface PlanResultSearcher
@NotNull public <T extends ResultsSummary> @NotNull List<T> findByCriteria(@NotNull @NotNull ResultSummarySearchCriteria criteria, @NotNull @NotNull Class<T> resultClass)
PlanResultSearcher
ResultsSummary
object given a ResultSummarySearchCriteria
.
Results are either sorted by build date (newest first) or unordered.findByCriteria
in interface PlanResultSearcher
public List<ChainResultsSummary> findByJiraCriteria(@NotNull @NotNull ByJiraIssueResultSearchCriteria jiraCriteria, @NotNull @NotNull ResultSummarySearchCriteria criteria)
findByJiraCriteria
in interface PlanResultSearcher
public long countByJiraCriteria(@NotNull @NotNull ByJiraIssueResultSearchCriteria jiraCriteria, @NotNull @NotNull ResultSummarySearchCriteria criteria)
countByJiraCriteria
in interface PlanResultSearcher
public <T extends PlanKeyProvider> List<T> findByJiraCriteriaAndTransform(@NotNull @NotNull ByJiraIssueResultSearchCriteria jiraCriteria, @NotNull @NotNull ResultSummarySearchCriteria criteria, @NotNull @NotNull Function<ChainResultsSummary,T> transformation)
PlanResultSearcher
ChainResultsSummary
relevant to given set of Jira issue keys and apply transformation.findByJiraCriteriaAndTransform
in interface PlanResultSearcher
@Nullable public @Nullable ChainResultsSummary findLatestRelevantBuildResult(@NotNull @NotNull PlanKey planKey, long beforeLastCompletedTimestamp)
PlanResultSearcher
findLatestRelevantBuildResult
in interface PlanResultSearcher
planKey
- Plan to filter build resultsbeforeLastCompletedTimestamp
- timestampCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.