public class BuildChangesImpl extends Object implements BuildChanges
Modifier and Type | Class and Description |
---|---|
static class |
BuildChangesImpl.BuildRepositoryChangesNotAvailableException |
Constructor and Description |
---|
BuildChangesImpl() |
BuildChangesImpl(@NotNull BuildChanges other) |
Modifier and Type | Method and 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 a
Repository dependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey
This is value is taken from the Repository as to be internally consistent |
Iterable<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)
Returns
PlanVcsRevisionData containing Repository dependent vcs revision data for this checkout. |
@Nullable String |
getVcsRevisionKey(long repositoryId)
Returns a
Repository 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() |
public BuildChangesImpl(@NotNull @NotNull BuildChanges other)
public BuildChangesImpl()
public void addRepositoryChanges(@NotNull @NotNull BuildRepositoryChanges repositoryChanges)
addRepositoryChanges
in interface BuildChanges
public Iterable<BuildRepositoryChanges> getRepositoryChanges()
getRepositoryChanges
in interface BuildChanges
@Nullable public @Nullable String getVcsRevisionKey(long repositoryId)
BuildChanges
Repository
dependent "id" for this checkout. e.g. revision number for
SVN etc. This is value is taken from the Repository
as to be internally consistentgetVcsRevisionKey
in interface BuildChanges
public void setVcsRevisionKey(long repositoryId, @NotNull @NotNull String vcsRevisionKey)
setVcsRevisionKey
in interface BuildChanges
@NotNull public @NotNull PlanVcsRevisionData getVcsRevisionData(long repositoryId)
BuildChanges
PlanVcsRevisionData
containing Repository
dependent vcs revision data for this checkout.getVcsRevisionData
in interface BuildChanges
public String getPreviousVcsRevisionKey(long repositoryId)
BuildChanges
Repository
dependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey
This is value is taken from the Repository
as to be internally consistentgetPreviousVcsRevisionKey
in interface BuildChanges
public void setPreviousVcsRevisionKey(long repositoryId, @Nullable @Nullable String previousVcsRevisionKey)
setPreviousVcsRevisionKey
in interface BuildChanges
@NotNull public @NotNull List<CommitContext> getChanges(long repositoryId)
BuildChanges
List
of Commit
objects that triggered off this particular build. Returns empty collection if no changes
returned.getChanges
in interface BuildChanges
List
of Commit
s. May be empty@NotNull public @NotNull com.google.common.collect.ImmutableList<CommitContext> getChanges()
BuildChanges
getChanges
in interface BuildChanges
public void setChanges(long repositoryId, @NotNull @NotNull List<CommitContext> changes)
setChanges
in interface BuildChanges
public int getSkippedCommitsCount(long repositoryId)
BuildChanges
getSkippedCommitsCount
in interface BuildChanges
public void setSkippedCommitsCount(long repositoryId, int skippedCommitsCount)
setSkippedCommitsCount
in interface BuildChanges
public long getIntegrationRepositoryId()
getIntegrationRepositoryId
in interface BuildChanges
public void setIntegrationRepositoryId(long integrationRepositoryId)
setIntegrationRepositoryId
in interface BuildChanges
@Nullable public @Nullable PlanVcsRevisionData getIntegrationBranchRevisionData()
getIntegrationBranchRevisionData
in interface BuildChanges
public void setIntegrationBranchRevisionData(@NotNull @NotNull PlanVcsRevisionData integrationBranchRevisionData)
setIntegrationBranchRevisionData
in interface BuildChanges
@NotNull public @NotNull BuildRepositoryChanges getBuildRepositoryChanges(long repositoryId)
getBuildRepositoryChanges
in interface BuildChanges
repositoryId
- repository idBuildRepositoryChanges
object for a specified repository id.Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.