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 class
BuildChangesImpl.BuildRepositoryChangesNotAvailableException
-
Constructor Summary
Constructors Constructor Description BuildChangesImpl()
BuildChangesImpl(@NotNull BuildChanges other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRepositoryChanges(@NotNull BuildRepositoryChanges repositoryChanges)
boolean
equals(Object o)
@NotNull BuildRepositoryChanges
getBuildRepositoryChanges(long repositoryId)
@NotNull com.google.common.collect.ImmutableList<CommitContext>
getChanges()
Get changes from all repositories@NotNull List<CommitContext>
getChanges(long repositoryId)
@Nullable PlanVcsRevisionData
getIntegrationBranchRevisionData()
long
getIntegrationRepositoryId()
String
getPreviousVcsRevisionKey(long repositoryId)
Returns aRepository
dependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from theRepository
as to be internally consistentIterable<BuildRepositoryChanges>
getRepositoryChanges()
int
getSkippedCommitsCount(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 PlanVcsRevisionData
getVcsRevisionData(long repositoryId)
ReturnsPlanVcsRevisionData
containingRepository
dependent vcs revision data for this checkout.@Nullable String
getVcsRevisionKey(long repositoryId)
Returns aRepository
dependent "id" for this checkout.int
hashCode()
void
setChanges(long repositoryId, @NotNull List<CommitContext> changes)
void
setIntegrationBranchRevisionData(@NotNull PlanVcsRevisionData integrationBranchRevisionData)
void
setIntegrationRepositoryId(long integrationRepositoryId)
void
setPreviousVcsRevisionKey(long repositoryId, @Nullable String previousVcsRevisionKey)
void
setSkippedCommitsCount(long repositoryId, int skippedCommitsCount)
void
setVcsRevisionKey(long repositoryId, @NotNull String vcsRevisionKey)
String
toString()
-
-
-
Constructor Detail
-
BuildChangesImpl
public BuildChangesImpl(@NotNull @NotNull BuildChanges other)
-
BuildChangesImpl
public BuildChangesImpl()
-
-
Method Detail
-
addRepositoryChanges
public void addRepositoryChanges(@NotNull @NotNull BuildRepositoryChanges repositoryChanges)
- Specified by:
addRepositoryChanges
in interfaceBuildChanges
-
getRepositoryChanges
public Iterable<BuildRepositoryChanges> getRepositoryChanges()
- Specified by:
getRepositoryChanges
in interfaceBuildChanges
-
getVcsRevisionKey
@Nullable public @Nullable String getVcsRevisionKey(long repositoryId)
Description copied from interface:BuildChanges
Returns aRepository
dependent "id" for this checkout. e.g. revision number for SVN etc. This is value is taken from theRepository
as to be internally consistent- Specified by:
getVcsRevisionKey
in interfaceBuildChanges
- Returns:
- Revision "id"
-
setVcsRevisionKey
public void setVcsRevisionKey(long repositoryId, @NotNull @NotNull String vcsRevisionKey)
- Specified by:
setVcsRevisionKey
in interfaceBuildChanges
-
getVcsRevisionData
@NotNull public @NotNull PlanVcsRevisionData getVcsRevisionData(long repositoryId)
Description copied from interface:BuildChanges
ReturnsPlanVcsRevisionData
containingRepository
dependent vcs revision data for this checkout.- Specified by:
getVcsRevisionData
in interfaceBuildChanges
- Returns:
-
getPreviousVcsRevisionKey
public String getPreviousVcsRevisionKey(long repositoryId)
Description copied from interface:BuildChanges
Returns aRepository
dependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from theRepository
as to be internally consistent- Specified by:
getPreviousVcsRevisionKey
in interfaceBuildChanges
- Returns:
-
setPreviousVcsRevisionKey
public void setPreviousVcsRevisionKey(long repositoryId, @Nullable @Nullable String previousVcsRevisionKey)
- Specified by:
setPreviousVcsRevisionKey
in interfaceBuildChanges
-
getChanges
@NotNull public @NotNull List<CommitContext> getChanges(long repositoryId)
Description copied from interface:BuildChanges
List
ofCommit
objects that triggered off this particular build. Returns empty collection if no changes returned.- Specified by:
getChanges
in interfaceBuildChanges
- Returns:
List
ofCommit
s. May be empty
-
getChanges
@NotNull public @NotNull com.google.common.collect.ImmutableList<CommitContext> getChanges()
Description copied from interface:BuildChanges
Get changes from all repositories- Specified by:
getChanges
in interfaceBuildChanges
- Returns:
-
setChanges
public void setChanges(long repositoryId, @NotNull @NotNull List<CommitContext> changes)
- Specified by:
setChanges
in interfaceBuildChanges
-
getSkippedCommitsCount
public int getSkippedCommitsCount(long repositoryId)
Description copied from interface:BuildChanges
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)- Specified by:
getSkippedCommitsCount
in interfaceBuildChanges
- Returns:
- number of skipped commits
-
setSkippedCommitsCount
public void setSkippedCommitsCount(long repositoryId, int skippedCommitsCount)
- Specified by:
setSkippedCommitsCount
in interfaceBuildChanges
-
getIntegrationRepositoryId
public long getIntegrationRepositoryId()
- Specified by:
getIntegrationRepositoryId
in interfaceBuildChanges
-
setIntegrationRepositoryId
public void setIntegrationRepositoryId(long integrationRepositoryId)
- Specified by:
setIntegrationRepositoryId
in interfaceBuildChanges
-
getIntegrationBranchRevisionData
@Nullable public @Nullable PlanVcsRevisionData getIntegrationBranchRevisionData()
- Specified by:
getIntegrationBranchRevisionData
in interfaceBuildChanges
-
setIntegrationBranchRevisionData
public void setIntegrationBranchRevisionData(@NotNull @NotNull PlanVcsRevisionData integrationBranchRevisionData)
- Specified by:
setIntegrationBranchRevisionData
in interfaceBuildChanges
-
getBuildRepositoryChanges
@NotNull public @NotNull BuildRepositoryChanges getBuildRepositoryChanges(long repositoryId)
- Specified by:
getBuildRepositoryChanges
in interfaceBuildChanges
- Parameters:
repositoryId
- repository id- Returns:
- complete
BuildRepositoryChanges
object for a specified repository id.
-
-