Class DeploymentVersionVcsChangesetImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.versions.history.commit.DeploymentVersionVcsChangesetImpl
-
- All Implemented Interfaces:
BambooIdProvider
,DeploymentVersionVcsChangeset
public class DeploymentVersionVcsChangesetImpl extends Object implements DeploymentVersionVcsChangeset
-
-
Constructor Summary
Constructors Constructor Description DeploymentVersionVcsChangesetImpl(long deploymentProjectId, RepositoryData repositoryData, Collection<DeploymentVersionVcsCommit> deploymentVersionVcsCommits)
Creates arbitrary changeset.DeploymentVersionVcsChangesetImpl(@NotNull MutableDeploymentVersionVcsChangeset changeset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getChangesetId()
Return VCS identifier for this changeset, that is, id of the latest commit in this changeset.@NotNull Set<DeploymentVersionVcsCommit>
getCommits()
long
getDeploymentVersionId()
long
getId()
RepositoryData
getRepositoryData()
long
getSkippedCommitsCount()
The number of commits that were included in this summary, but their details were skipped (because there was too many commits to keep them all in this summary)
-
-
-
Constructor Detail
-
DeploymentVersionVcsChangesetImpl
public DeploymentVersionVcsChangesetImpl(@NotNull @NotNull MutableDeploymentVersionVcsChangeset changeset)
-
DeploymentVersionVcsChangesetImpl
public DeploymentVersionVcsChangesetImpl(long deploymentProjectId, RepositoryData repositoryData, Collection<DeploymentVersionVcsCommit> deploymentVersionVcsCommits)
Creates arbitrary changeset.- Parameters:
deploymentProjectId
-repositoryData
-deploymentVersionVcsCommits
-
-
-
Method Detail
-
getDeploymentVersionId
public long getDeploymentVersionId()
- Specified by:
getDeploymentVersionId
in interfaceDeploymentVersionVcsChangeset
- Returns:
- id of
DeploymentVersion
this object is related to
-
getRepositoryData
public RepositoryData getRepositoryData()
- Specified by:
getRepositoryData
in interfaceDeploymentVersionVcsChangeset
- Returns:
- repository the commits come from
-
getChangesetId
@Nullable public @Nullable String getChangesetId()
Description copied from interface:DeploymentVersionVcsChangeset
Return VCS identifier for this changeset, that is, id of the latest commit in this changeset.- Specified by:
getChangesetId
in interfaceDeploymentVersionVcsChangeset
-
getCommits
@NotNull public @NotNull Set<DeploymentVersionVcsCommit> getCommits()
- Specified by:
getCommits
in interfaceDeploymentVersionVcsChangeset
- Returns:
- all commits
-
getSkippedCommitsCount
public long getSkippedCommitsCount()
Description copied from interface:DeploymentVersionVcsChangeset
The number of commits that were included in this summary, but their details were skipped (because there was too many commits to keep them all in this summary)- Specified by:
getSkippedCommitsCount
in interfaceDeploymentVersionVcsChangeset
- Returns:
- number of skipped commits
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
-