Package com.atlassian.bamboo.v2.build
Class BuildChangesImpl
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.BuildChangesImpl
-
- All Implemented Interfaces:
BuildChanges,Serializable
public class BuildChangesImpl extends Object implements BuildChanges
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuildChangesImpl.BuildRepositoryChangesNotAvailableException
-
Constructor Summary
Constructors Constructor Description BuildChangesImpl()BuildChangesImpl(@NotNull BuildChanges other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRepositoryChanges(@NotNull BuildRepositoryChanges repositoryChanges)booleanequals(Object o)@NotNull BuildRepositoryChangesgetBuildRepositoryChanges(long repositoryId)@NotNull com.google.common.collect.ImmutableList<CommitContext>getChanges()Get changes from all repositories@NotNull List<CommitContext>getChanges(long repositoryId)@Nullable PlanVcsRevisionDatagetIntegrationBranchRevisionData()longgetIntegrationRepositoryId()StringgetPreviousVcsRevisionKey(long repositoryId)Returns aRepositorydependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from theRepositoryas to be internally consistentIterable<BuildRepositoryChanges>getRepositoryChanges()intgetSkippedCommitsCount(long repositoryId)The number of commits that were included in this buildChanges, but their details were skipped (because there was too many commits to keep them all in this buildChanges)@NotNull PlanVcsRevisionDatagetVcsRevisionData(long repositoryId)ReturnsPlanVcsRevisionDatacontainingRepositorydependent vcs revision data for this checkout.@Nullable StringgetVcsRevisionKey(long repositoryId)Returns aRepositorydependent "id" for this checkout. e.g. revision number for SVN etc.inthashCode()voidsetChanges(long repositoryId, @NotNull List<CommitContext> changes)voidsetIntegrationBranchRevisionData(@NotNull PlanVcsRevisionData integrationBranchRevisionData)voidsetIntegrationRepositoryId(long integrationRepositoryId)voidsetPreviousVcsRevisionKey(long repositoryId, @Nullable String previousVcsRevisionKey)voidsetSkippedCommitsCount(long repositoryId, int skippedCommitsCount)voidsetVcsRevisionKey(long repositoryId, @NotNull String vcsRevisionKey)StringtoString()
-
-
-
Constructor Detail
-
BuildChangesImpl
public BuildChangesImpl(@NotNull @NotNull BuildChanges other)
-
BuildChangesImpl
public BuildChangesImpl()
-
-
Method Detail
-
addRepositoryChanges
public void addRepositoryChanges(@NotNull @NotNull BuildRepositoryChanges repositoryChanges)- Specified by:
addRepositoryChangesin interfaceBuildChanges
-
getRepositoryChanges
public Iterable<BuildRepositoryChanges> getRepositoryChanges()
- Specified by:
getRepositoryChangesin interfaceBuildChanges
-
getVcsRevisionKey
@Nullable public @Nullable String getVcsRevisionKey(long repositoryId)
Description copied from interface:BuildChangesReturns aRepositorydependent "id" for this checkout. e.g. revision number for SVN etc. This is value is taken from theRepositoryas to be internally consistent- Specified by:
getVcsRevisionKeyin interfaceBuildChanges- Returns:
- Revision "id"
-
setVcsRevisionKey
public void setVcsRevisionKey(long repositoryId, @NotNull @NotNull String vcsRevisionKey)- Specified by:
setVcsRevisionKeyin interfaceBuildChanges
-
getVcsRevisionData
@NotNull public @NotNull PlanVcsRevisionData getVcsRevisionData(long repositoryId)
Description copied from interface:BuildChangesReturnsPlanVcsRevisionDatacontainingRepositorydependent vcs revision data for this checkout.- Specified by:
getVcsRevisionDatain interfaceBuildChanges- Returns:
-
getPreviousVcsRevisionKey
public String getPreviousVcsRevisionKey(long repositoryId)
Description copied from interface:BuildChangesReturns aRepositorydependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from theRepositoryas to be internally consistent- Specified by:
getPreviousVcsRevisionKeyin interfaceBuildChanges- Returns:
-
setPreviousVcsRevisionKey
public void setPreviousVcsRevisionKey(long repositoryId, @Nullable @Nullable String previousVcsRevisionKey)- Specified by:
setPreviousVcsRevisionKeyin interfaceBuildChanges
-
getChanges
@NotNull public @NotNull List<CommitContext> getChanges(long repositoryId)
Description copied from interface:BuildChangesListofCommitobjects that triggered off this particular build. Returns empty collection if no changes returned.- Specified by:
getChangesin interfaceBuildChanges- Returns:
ListofCommits. May be empty
-
getChanges
@NotNull public @NotNull com.google.common.collect.ImmutableList<CommitContext> getChanges()
Description copied from interface:BuildChangesGet changes from all repositories- Specified by:
getChangesin interfaceBuildChanges- Returns:
-
setChanges
public void setChanges(long repositoryId, @NotNull @NotNull List<CommitContext> changes)- Specified by:
setChangesin interfaceBuildChanges
-
getSkippedCommitsCount
public int getSkippedCommitsCount(long repositoryId)
Description copied from interface:BuildChangesThe number of commits that were included in this buildChanges, but their details were skipped (because there was too many commits to keep them all in this buildChanges)- Specified by:
getSkippedCommitsCountin interfaceBuildChanges- Returns:
- number of skipped commits
-
setSkippedCommitsCount
public void setSkippedCommitsCount(long repositoryId, int skippedCommitsCount)- Specified by:
setSkippedCommitsCountin interfaceBuildChanges
-
getIntegrationRepositoryId
public long getIntegrationRepositoryId()
- Specified by:
getIntegrationRepositoryIdin interfaceBuildChanges
-
setIntegrationRepositoryId
public void setIntegrationRepositoryId(long integrationRepositoryId)
- Specified by:
setIntegrationRepositoryIdin interfaceBuildChanges
-
getIntegrationBranchRevisionData
@Nullable public @Nullable PlanVcsRevisionData getIntegrationBranchRevisionData()
- Specified by:
getIntegrationBranchRevisionDatain interfaceBuildChanges
-
setIntegrationBranchRevisionData
public void setIntegrationBranchRevisionData(@NotNull @NotNull PlanVcsRevisionData integrationBranchRevisionData)- Specified by:
setIntegrationBranchRevisionDatain interfaceBuildChanges
-
getBuildRepositoryChanges
@NotNull public @NotNull BuildRepositoryChanges getBuildRepositoryChanges(long repositoryId)
- Specified by:
getBuildRepositoryChangesin interfaceBuildChanges- Parameters:
repositoryId- repository id- Returns:
- complete
BuildRepositoryChangesobject for a specified repository id.
-
-