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) 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) @Nullable StringgetVcsRevisionKey(long repositoryId) 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
- Specified by:
getVcsRevisionKeyin interfaceBuildChanges- Returns:
- Revision "id"
-
setVcsRevisionKey
- Specified by:
setVcsRevisionKeyin interfaceBuildChanges
-
getVcsRevisionData
- Specified by:
getVcsRevisionDatain interfaceBuildChanges
-
getPreviousVcsRevisionKey
- Specified by:
getPreviousVcsRevisionKeyin interfaceBuildChanges
-
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- Parameters:
repositoryId-- 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.
-