Package com.atlassian.bamboo.build
Class JiraIssueResultsManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.JiraIssueResultsManagerImpl
-
- All Implemented Interfaces:
JiraIssueResultsManager
public class JiraIssueResultsManagerImpl extends Object implements JiraIssueResultsManager
-
-
Constructor Summary
Constructors Constructor Description JiraIssueResultsManagerImpl(@NotNull PlanResultSearcher planResultSearcher, @NotNull ResultsSummaryManager resultsSummaryManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PartialList<ResultsSummary>findBuildResultsByJiraIssueKey(@NotNull List<String> issueKeys, int maxResults)Finds a list of completed Build Results given issue keys@NotNull PartialList<? extends ResultsSummary>findBuildResultsByProjectKey(@NotNull String projectKey, int maxResults)Finds completed Build Results given a project key@NotNull PartialList<? extends ResultsSummary>findBuildResultsByProjectKeys(@NotNull List<String> projectKeys, int maxResults)Finds build results given a project keys@NotNull List<LinkedJiraIssue>findJiraIssuesForBuildResults(@NotNull List<ResultsSummary> buildResults)Finds a list of jira issues linked to the given build results@NotNull List<LinkedJiraIssue>findJiraIssuesForPlanKey(@NotNull PlanKey planKey)Finds a list of jira issues linked to a particular build key@NotNull Collection<String>findPlanKeysByIssueKeys(@NotNull List<String> issueKeys)@NotNull Collection<String>findPlanKeysByJiraProjectKey(@NotNull String projectKey)Returns a list of plans that's associated with@NotNull Collection<String>findPlanKeysByJiraProjectKeys(@NotNull List<String> projectKeys)Returns a list of plans that's associated withintgetNumberOfRelatedBuildsByIssueKey(@NotNull List<String> issueKeys)Counts the number of completed Build Results related to these issues
-
-
-
Constructor Detail
-
JiraIssueResultsManagerImpl
@Inject public JiraIssueResultsManagerImpl(@NotNull @NotNull PlanResultSearcher planResultSearcher, @NotNull @NotNull ResultsSummaryManager resultsSummaryManager)
-
-
Method Detail
-
findBuildResultsByJiraIssueKey
@NotNull public @NotNull PartialList<ResultsSummary> findBuildResultsByJiraIssueKey(@NotNull @NotNull List<String> issueKeys, int maxResults)
Description copied from interface:JiraIssueResultsManagerFinds a list of completed Build Results given issue keys- Specified by:
findBuildResultsByJiraIssueKeyin interfaceJiraIssueResultsManager- Returns:
ListofResultsSummary. Empty if no matches
-
getNumberOfRelatedBuildsByIssueKey
public int getNumberOfRelatedBuildsByIssueKey(@NotNull @NotNull List<String> issueKeys)Description copied from interface:JiraIssueResultsManagerCounts the number of completed Build Results related to these issues- Specified by:
getNumberOfRelatedBuildsByIssueKeyin interfaceJiraIssueResultsManager- Returns:
-
findBuildResultsByProjectKey
@NotNull public @NotNull PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(@NotNull @NotNull String projectKey, int maxResults)
Description copied from interface:JiraIssueResultsManagerFinds completed Build Results given a project key- Specified by:
findBuildResultsByProjectKeyin interfaceJiraIssueResultsManager- Returns:
-
findBuildResultsByProjectKeys
@NotNull public @NotNull PartialList<? extends ResultsSummary> findBuildResultsByProjectKeys(@NotNull @NotNull List<String> projectKeys, int maxResults)
Description copied from interface:JiraIssueResultsManagerFinds build results given a project keys- Specified by:
findBuildResultsByProjectKeysin interfaceJiraIssueResultsManager- Returns:
-
findPlanKeysByJiraProjectKey
@NotNull public @NotNull Collection<String> findPlanKeysByJiraProjectKey(@NotNull @NotNull String projectKey)
Description copied from interface:JiraIssueResultsManagerReturns a list of plans that's associated with- Specified by:
findPlanKeysByJiraProjectKeyin interfaceJiraIssueResultsManager- Returns:
-
findPlanKeysByJiraProjectKeys
@NotNull public @NotNull Collection<String> findPlanKeysByJiraProjectKeys(@NotNull @NotNull List<String> projectKeys)
Description copied from interface:JiraIssueResultsManagerReturns a list of plans that's associated with- Specified by:
findPlanKeysByJiraProjectKeysin interfaceJiraIssueResultsManager- Returns:
-
findPlanKeysByIssueKeys
@NotNull public @NotNull Collection<String> findPlanKeysByIssueKeys(@NotNull @NotNull List<String> issueKeys)
- Specified by:
findPlanKeysByIssueKeysin interfaceJiraIssueResultsManager- Returns:
-
findJiraIssuesForBuildResults
@NotNull public @NotNull List<LinkedJiraIssue> findJiraIssuesForBuildResults(@NotNull @NotNull List<ResultsSummary> buildResults)
Description copied from interface:JiraIssueResultsManagerFinds a list of jira issues linked to the given build results- Specified by:
findJiraIssuesForBuildResultsin interfaceJiraIssueResultsManager- Parameters:
buildResults-ListofResultsSummary- Returns:
ListofLinkedJiraIssue
-
findJiraIssuesForPlanKey
@NotNull public @NotNull List<LinkedJiraIssue> findJiraIssuesForPlanKey(@NotNull @NotNull PlanKey planKey)
Description copied from interface:JiraIssueResultsManagerFinds a list of jira issues linked to a particular build key- Specified by:
findJiraIssuesForPlanKeyin interfaceJiraIssueResultsManager- Parameters:
planKey- key to buildPlan- Returns:
ListofLinkedJiraIssue
-
-