Class DeploymentVersionVcsChangesetServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.versions.service.DeploymentVersionVcsChangesetServiceImpl
-
- All Implemented Interfaces:
DeploymentVersionVcsChangesetService
public class DeploymentVersionVcsChangesetServiceImpl extends Object implements DeploymentVersionVcsChangesetService
-
-
Constructor Summary
Constructors Constructor Description DeploymentVersionVcsChangesetServiceImpl(DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, DeploymentVersionVcsCommitDao deploymentVersionVcsCommitDao, DeploymentVersionService deploymentVersionService, RepositoryDefinitionManager repositoryDefinitionManager, DeploymentVersionChainResultDataCollector deploymentVersionChainResultDataCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull DeploymentVersionCommitsComparisonResult
compareVersionsByChangesets(long deploymentProjectId, @NotNull DeploymentVersion version1, @NotNull DeploymentVersion version2, int maxCommits)
Find allDeploymentVersionVcsChangeset
that happened after creation of older version until (and including) the creation of newer version.@NotNull List<DeploymentVersionVcsChangeset>
getChangesetsForDeploymentVersion(@NotNull DeploymentVersion deploymentVersion)
Find allDeploymentVersionVcsChangeset
associated with aDeploymentVersion
@NotNull DeploymentVersionCommitsComparisonResult
getChangesetsForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, int maxCommits)
Finds the changesets if a new version would be created from planResultKey.@NotNull DeploymentVersionCommitsComparisonResult
getChangesetsForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, int maxCommits, @NotNull DeploymentVersion version)
Same as above, but finds changesets between a certain version and the new version to be created from the planResultKey.int
getCommitCountForDeploymentVersion(@NotNull DeploymentVersion deploymentVersion)
count of all commits in all changesets associated with aDeploymentVersion
@NotNull DeploymentVersionCommitsComparisonResult
getLastNCommitsForVersion(long deploymentProjectId, DeploymentVersion deploymentVersion, int maxCommits)
Find changesets for the version and fetch n last commits.
-
-
-
Constructor Detail
-
DeploymentVersionVcsChangesetServiceImpl
public DeploymentVersionVcsChangesetServiceImpl(DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, DeploymentVersionVcsCommitDao deploymentVersionVcsCommitDao, DeploymentVersionService deploymentVersionService, RepositoryDefinitionManager repositoryDefinitionManager, DeploymentVersionChainResultDataCollector deploymentVersionChainResultDataCollector)
-
-
Method Detail
-
getChangesetsForDeploymentVersion
@NotNull public @NotNull List<DeploymentVersionVcsChangeset> getChangesetsForDeploymentVersion(@NotNull @NotNull DeploymentVersion deploymentVersion)
Description copied from interface:DeploymentVersionVcsChangesetService
Find allDeploymentVersionVcsChangeset
associated with aDeploymentVersion
- Specified by:
getChangesetsForDeploymentVersion
in interfaceDeploymentVersionVcsChangesetService
- Parameters:
deploymentVersion
- a version
-
getCommitCountForDeploymentVersion
public int getCommitCountForDeploymentVersion(@NotNull @NotNull DeploymentVersion deploymentVersion)
Description copied from interface:DeploymentVersionVcsChangesetService
count of all commits in all changesets associated with aDeploymentVersion
- Specified by:
getCommitCountForDeploymentVersion
in interfaceDeploymentVersionVcsChangesetService
- Parameters:
deploymentVersion
- a version
-
compareVersionsByChangesets
@NotNull public @NotNull DeploymentVersionCommitsComparisonResult compareVersionsByChangesets(long deploymentProjectId, @NotNull @NotNull DeploymentVersion version1, @NotNull @NotNull DeploymentVersion version2, int maxCommits)
Description copied from interface:DeploymentVersionVcsChangesetService
Find allDeploymentVersionVcsChangeset
that happened after creation of older version until (and including) the creation of newer version.- Specified by:
compareVersionsByChangesets
in interfaceDeploymentVersionVcsChangesetService
version1
- 1st version to compare (can be either older or newer than version2)version2
- 2nd version to compare (can be either older or newer than version1)maxCommits
- maximum number of commits fetched with full information- Returns:
-
getLastNCommitsForVersion
@NotNull public @NotNull DeploymentVersionCommitsComparisonResult getLastNCommitsForVersion(long deploymentProjectId, DeploymentVersion deploymentVersion, int maxCommits)
Description copied from interface:DeploymentVersionVcsChangesetService
Find changesets for the version and fetch n last commits.- Specified by:
getLastNCommitsForVersion
in interfaceDeploymentVersionVcsChangesetService
- Returns:
-
getChangesetsForNewDeploymentVersion
@NotNull public @NotNull DeploymentVersionCommitsComparisonResult getChangesetsForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, int maxCommits)
Description copied from interface:DeploymentVersionVcsChangesetService
Finds the changesets if a new version would be created from planResultKey. Doesn't save anything to db,- Specified by:
getChangesetsForNewDeploymentVersion
in interfaceDeploymentVersionVcsChangesetService
- Parameters:
deploymentProjectId
- id of the deployment projectplanResultKey
- of the build result we want to create version from- Returns:
-
getChangesetsForNewDeploymentVersion
@NotNull public @NotNull DeploymentVersionCommitsComparisonResult getChangesetsForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, int maxCommits, @NotNull @NotNull DeploymentVersion version)
Description copied from interface:DeploymentVersionVcsChangesetService
Same as above, but finds changesets between a certain version and the new version to be created from the planResultKey.- Specified by:
getChangesetsForNewDeploymentVersion
in interfaceDeploymentVersionVcsChangesetService
- Parameters:
deploymentProjectId
- id of the deployment projectplanResultKey
- of the build result we want to create version frommaxCommits
- max number of commits to fetchversion
- DeploymentVersion that we want to compare the planResultKey to in order to get the changesets- Returns:
-
-