com.atlassian.bamboo.deployments.versions.service
Class DeploymentVersionLinkedJiraIssuesServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.versions.service.DeploymentVersionLinkedJiraIssuesServiceImpl
All Implemented Interfaces:
DeploymentVersionLinkedJiraIssuesService

public class DeploymentVersionLinkedJiraIssuesServiceImpl
extends java.lang.Object
implements DeploymentVersionLinkedJiraIssuesService


Constructor Summary
DeploymentVersionLinkedJiraIssuesServiceImpl(DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao, DeploymentVersionChainResultDataCollector deploymentVersionChainResultDataCollector, DeploymentVersionService deploymentVersionService)
           
 
Method Summary
 java.util.List<DeploymentVersionLinkedJiraIssue> compareVersionsByJiraIssues(long deploymentProjectId, DeploymentVersion version1, DeploymentVersion version2)
          Get JIRA issue links for comparing two versions, i.e.
 int getJiraIssueCountForDeploymentVersion(long deploymentVersionId)
          Get count of all JIRA issues associated with DeploymentVersion
 java.util.Set<java.lang.String> getJiraIssueKeysForDeploymentVersion(long deploymentVersionId)
          Get keys of all JIRA issues associated with a DeploymentVersion
 java.util.List<DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersion(long deploymentVersionId)
          Get all JIRA issues associated with DeploymentVersion
 java.util.SortedMap<java.lang.String,DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersionsMap(long deploymentVersionId)
          Get all JIRA issues associated with DeploymentVersion as mapping between issue key and DeploymentVersionLinkedJiraIssue
 java.util.List<InternalLinkedJiraIssue> getJiraIssuesForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey)
          Finds the relevant jira issues if a new version would be created from planResultKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentVersionLinkedJiraIssuesServiceImpl

public DeploymentVersionLinkedJiraIssuesServiceImpl(DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao,
                                                    DeploymentVersionChainResultDataCollector deploymentVersionChainResultDataCollector,
                                                    DeploymentVersionService deploymentVersionService)
Method Detail

getJiraIssuesForDeploymentVersion

public java.util.List<DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersion(long deploymentVersionId)
Description copied from interface: DeploymentVersionLinkedJiraIssuesService
Get all JIRA issues associated with DeploymentVersion

Specified by:
getJiraIssuesForDeploymentVersion in interface DeploymentVersionLinkedJiraIssuesService
Returns:

getJiraIssueCountForDeploymentVersion

public int getJiraIssueCountForDeploymentVersion(long deploymentVersionId)
Description copied from interface: DeploymentVersionLinkedJiraIssuesService
Get count of all JIRA issues associated with DeploymentVersion

Specified by:
getJiraIssueCountForDeploymentVersion in interface DeploymentVersionLinkedJiraIssuesService
Parameters:
deploymentVersionId - id of the version
Returns:
number of issues linked with DeploymentVersion

getJiraIssuesForDeploymentVersionsMap

public java.util.SortedMap<java.lang.String,DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersionsMap(long deploymentVersionId)
Description copied from interface: DeploymentVersionLinkedJiraIssuesService
Get all JIRA issues associated with DeploymentVersion as mapping between issue key and DeploymentVersionLinkedJiraIssue

Specified by:
getJiraIssuesForDeploymentVersionsMap in interface DeploymentVersionLinkedJiraIssuesService
Returns:

getJiraIssueKeysForDeploymentVersion

public java.util.Set<java.lang.String> getJiraIssueKeysForDeploymentVersion(long deploymentVersionId)
Description copied from interface: DeploymentVersionLinkedJiraIssuesService
Get keys of all JIRA issues associated with a DeploymentVersion

Specified by:
getJiraIssueKeysForDeploymentVersion in interface DeploymentVersionLinkedJiraIssuesService
Returns:

compareVersionsByJiraIssues

public java.util.List<DeploymentVersionLinkedJiraIssue> compareVersionsByJiraIssues(long deploymentProjectId,
                                                                                    @NotNull
                                                                                    DeploymentVersion version1,
                                                                                    @NotNull
                                                                                    DeploymentVersion version2)
Description copied from interface: DeploymentVersionLinkedJiraIssuesService
Get JIRA issue links for comparing two versions, i.e. all JIRA issue linked to versions newer than older of the two versions up to (and including) then newer version.

Specified by:
compareVersionsByJiraIssues in interface DeploymentVersionLinkedJiraIssuesService
version1 - 1st version to compare (may be older or newer than version2)
version2 - 2nd version to compare (may be older or newer than version1)
Returns:

getJiraIssuesForNewDeploymentVersion

@NotNull
public java.util.List<InternalLinkedJiraIssue> getJiraIssuesForNewDeploymentVersion(long deploymentProjectId,
                                                                                            PlanResultKey planResultKey)
Description copied from interface: DeploymentVersionLinkedJiraIssuesService
Finds the relevant jira issues if a new version would be created from planResultKey. Doesn't save anything to db,

Specified by:
getJiraIssuesForNewDeploymentVersion in interface DeploymentVersionLinkedJiraIssuesService
Parameters:
deploymentProjectId - id of the deployment project
planResultKey - of the build result we want to create version from
Returns:


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.