Package com.atlassian.bamboo.v2.build
Class BuildChangesImpl
java.lang.Object
com.atlassian.bamboo.v2.build.BuildChangesImpl
- All Implemented Interfaces:
BuildChanges,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRepositoryChanges(@NotNull BuildRepositoryChanges repositoryChanges) boolean@NotNull BuildRepositoryChangesgetBuildRepositoryChanges(long repositoryId) @NotNull com.google.common.collect.ImmutableList<CommitContext>Get changes from all repositories@NotNull List<CommitContext>getChanges(long repositoryId) @Nullable PlanVcsRevisionDatalonggetPreviousVcsRevisionKey(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 consistentintgetSkippedCommitsCount(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.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) toString()
-
Constructor Details
-
BuildChangesImpl
-
BuildChangesImpl
public BuildChangesImpl()
-
-
Method Details
-
addRepositoryChanges
- Specified by:
addRepositoryChangesin interfaceBuildChanges
-
getRepositoryChanges
- Specified by:
getRepositoryChangesin interfaceBuildChanges
-
getVcsRevisionKey
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
- Specified by:
setVcsRevisionKeyin interfaceBuildChanges
-
getVcsRevisionData
Description copied from interface:BuildChangesReturnsPlanVcsRevisionDatacontainingRepositorydependent vcs revision data for this checkout.- Specified by:
getVcsRevisionDatain interfaceBuildChanges- Returns:
-
getPreviousVcsRevisionKey
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
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
Description copied from interface:BuildChangesGet changes from all repositories- Specified by:
getChangesin interfaceBuildChanges- Returns:
-
setChanges
- 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
- Specified by:
getIntegrationBranchRevisionDatain interfaceBuildChanges
-
setIntegrationBranchRevisionData
public void setIntegrationBranchRevisionData(@NotNull @NotNull PlanVcsRevisionData integrationBranchRevisionData) - Specified by:
setIntegrationBranchRevisionDatain interfaceBuildChanges
-
hashCode
public int hashCode() -
equals
-
toString
-
getBuildRepositoryChanges
- Specified by:
getBuildRepositoryChangesin interfaceBuildChanges- Parameters:
repositoryId- repository id- Returns:
- complete
BuildRepositoryChangesobject for a specified repository id.
-