com.atlassian.bamboo.deployments.versions.history.commit
Class DeploymentVersionVcsChangesetImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.versions.history.commit.DeploymentVersionVcsChangesetImpl
All Implemented Interfaces:
BambooIdProvider, DeploymentVersionVcsChangeset

public class DeploymentVersionVcsChangesetImpl
extends java.lang.Object
implements DeploymentVersionVcsChangeset


Constructor Summary
DeploymentVersionVcsChangesetImpl(long deploymentProjectId, RepositoryData repositoryData, java.util.Collection<DeploymentVersionVcsCommit> deploymentVersionVcsCommits)
          Creates arbitrary changeset.
DeploymentVersionVcsChangesetImpl(MutableDeploymentVersionVcsChangeset changeset)
           
 
Method Summary
 java.lang.String getChangesetId()
          Return VCS identifier for this changeset, that is, id of the latest commit in this changeset.
 java.util.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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentVersionVcsChangesetImpl

public DeploymentVersionVcsChangesetImpl(@NotNull
                                         MutableDeploymentVersionVcsChangeset changeset)

DeploymentVersionVcsChangesetImpl

public DeploymentVersionVcsChangesetImpl(long deploymentProjectId,
                                         RepositoryData repositoryData,
                                         java.util.Collection<DeploymentVersionVcsCommit> deploymentVersionVcsCommits)
Creates arbitrary changeset.

Parameters:
deploymentProjectId -
repositoryData -
deploymentVersionVcsCommits -
Method Detail

getDeploymentVersionId

public long getDeploymentVersionId()
Specified by:
getDeploymentVersionId in interface DeploymentVersionVcsChangeset
Returns:
id of DeploymentVersion this object is related to

getRepositoryData

public RepositoryData getRepositoryData()
Specified by:
getRepositoryData in interface DeploymentVersionVcsChangeset
Returns:
repository the commits come from

getChangesetId

@Nullable
public java.lang.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 interface DeploymentVersionVcsChangeset

getCommits

@NotNull
public java.util.Set<DeploymentVersionVcsCommit> getCommits()
Specified by:
getCommits in interface DeploymentVersionVcsChangeset
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 interface DeploymentVersionVcsChangeset
Returns:
number of skipped commits

getId

public long getId()
Specified by:
getId in interface BambooIdProvider


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