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 withint
getNumberOfRelatedBuildsByIssueKey(@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:JiraIssueResultsManager
Finds a list of completed Build Results given issue keys- Specified by:
findBuildResultsByJiraIssueKey
in interfaceJiraIssueResultsManager
- Returns:
List
ofResultsSummary
. Empty if no matches
-
getNumberOfRelatedBuildsByIssueKey
public int getNumberOfRelatedBuildsByIssueKey(@NotNull @NotNull List<String> issueKeys)
Description copied from interface:JiraIssueResultsManager
Counts the number of completed Build Results related to these issues- Specified by:
getNumberOfRelatedBuildsByIssueKey
in interfaceJiraIssueResultsManager
- Returns:
-
findBuildResultsByProjectKey
@NotNull public @NotNull PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(@NotNull @NotNull String projectKey, int maxResults)
Description copied from interface:JiraIssueResultsManager
Finds completed Build Results given a project key- Specified by:
findBuildResultsByProjectKey
in interfaceJiraIssueResultsManager
- Returns:
-
findBuildResultsByProjectKeys
@NotNull public @NotNull PartialList<? extends ResultsSummary> findBuildResultsByProjectKeys(@NotNull @NotNull List<String> projectKeys, int maxResults)
Description copied from interface:JiraIssueResultsManager
Finds build results given a project keys- Specified by:
findBuildResultsByProjectKeys
in interfaceJiraIssueResultsManager
- Returns:
-
findPlanKeysByJiraProjectKey
@NotNull public @NotNull Collection<String> findPlanKeysByJiraProjectKey(@NotNull @NotNull String projectKey)
Description copied from interface:JiraIssueResultsManager
Returns a list of plans that's associated with- Specified by:
findPlanKeysByJiraProjectKey
in interfaceJiraIssueResultsManager
- Returns:
-
findPlanKeysByJiraProjectKeys
@NotNull public @NotNull Collection<String> findPlanKeysByJiraProjectKeys(@NotNull @NotNull List<String> projectKeys)
Description copied from interface:JiraIssueResultsManager
Returns a list of plans that's associated with- Specified by:
findPlanKeysByJiraProjectKeys
in interfaceJiraIssueResultsManager
- Returns:
-
findPlanKeysByIssueKeys
@NotNull public @NotNull Collection<String> findPlanKeysByIssueKeys(@NotNull @NotNull List<String> issueKeys)
- Specified by:
findPlanKeysByIssueKeys
in interfaceJiraIssueResultsManager
- Returns:
-
findJiraIssuesForBuildResults
@NotNull public @NotNull List<LinkedJiraIssue> findJiraIssuesForBuildResults(@NotNull @NotNull List<ResultsSummary> buildResults)
Description copied from interface:JiraIssueResultsManager
Finds a list of jira issues linked to the given build results- Specified by:
findJiraIssuesForBuildResults
in interfaceJiraIssueResultsManager
- Parameters:
buildResults
-List
ofResultsSummary
- Returns:
List
ofLinkedJiraIssue
-
findJiraIssuesForPlanKey
@NotNull public @NotNull List<LinkedJiraIssue> findJiraIssuesForPlanKey(@NotNull @NotNull PlanKey planKey)
Description copied from interface:JiraIssueResultsManager
Finds a list of jira issues linked to a particular build key- Specified by:
findJiraIssuesForPlanKey
in interfaceJiraIssueResultsManager
- Parameters:
planKey
- key to buildPlan
- Returns:
List
ofLinkedJiraIssue
-
-