public class BuildChangesImpl extends Object implements BuildChanges
Constructor and Description |
---|
BuildChangesImpl() |
BuildChangesImpl(BuildChanges other) |
Modifier and Type | Method and Description |
---|---|
void |
addRepositoryChanges(BuildRepositoryChanges repositoryChanges) |
boolean |
equals(Object o) |
BuildRepositoryChanges |
getBuildRepositoryChanges(long repositoryId) |
com.google.common.collect.ImmutableList<CommitContext> |
getChanges()
Get changes from all repositories
|
List<CommitContext> |
getChanges(long repositoryId)
|
PlanVcsRevisionData |
getIntegrationBranchRevisionData() |
String |
getIntegrationBranchVcsRevision()
The current revision of the integration branch, that one that was detected during detecting all other changes.
|
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)
|
String |
getVcsLastChangeRevisionKey(long repositoryId) |
PlanVcsRevisionData |
getVcsRevisionData(long repositoryId)
Returns
PlanVcsRevisionData containing Repository dependent vcs revision data for this checkout. |
String |
getVcsRevisionKey(long repositoryId)
Returns a
Repository dependent "id" for this checkout. |
int |
hashCode() |
void |
setChanges(long repositoryId,
List<CommitContext> changes) |
void |
setIntegrationBranchRevisionData(PlanVcsRevisionData integrationBranchRevisionData) |
void |
setIntegrationRepositoryId(long integrationRepositoryId) |
void |
setPreviousVcsRevisionKey(long repositoryId,
String previousVcsRevisionKey) |
void |
setSkippedCommitsCount(long repositoryId,
int skippedCommitsCount) |
void |
setVcsLastChangeRevisionKey(long repositoryId,
String vcsLastChangeRevisionKey) |
void |
setVcsRevisionKey(long repositoryId,
String vcsRevisionKey) |
String |
toString() |
public BuildChangesImpl(@NotNull BuildChanges other)
public BuildChangesImpl()
public void addRepositoryChanges(@NotNull BuildRepositoryChanges repositoryChanges)
addRepositoryChanges
in interface BuildChanges
public Iterable<BuildRepositoryChanges> getRepositoryChanges()
getRepositoryChanges
in interface BuildChanges
@Nullable public String getVcsRevisionKey(long repositoryId)
BuildChanges
Repository
dependent "id" for this checkout. e.g. date timestamp for CVS, 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 String vcsRevisionKey)
setVcsRevisionKey
in interface BuildChanges
@NotNull public 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 String previousVcsRevisionKey)
setPreviousVcsRevisionKey
in interface BuildChanges
public String getVcsLastChangeRevisionKey(long repositoryId)
getVcsLastChangeRevisionKey
in interface BuildChanges
public void setVcsLastChangeRevisionKey(long repositoryId, String vcsLastChangeRevisionKey)
setVcsLastChangeRevisionKey
in interface BuildChanges
@NotNull public 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 com.google.common.collect.ImmutableList<CommitContext> getChanges()
BuildChanges
getChanges
in interface BuildChanges
public void setChanges(long repositoryId, @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 String getIntegrationBranchVcsRevision()
BuildChanges
getIntegrationBranchVcsRevision
in interface BuildChanges
public long getIntegrationRepositoryId()
getIntegrationRepositoryId
in interface BuildChanges
public void setIntegrationRepositoryId(long integrationRepositoryId)
setIntegrationRepositoryId
in interface BuildChanges
@Nullable public PlanVcsRevisionData getIntegrationBranchRevisionData()
getIntegrationBranchRevisionData
in interface BuildChanges
public void setIntegrationBranchRevisionData(@NotNull PlanVcsRevisionData integrationBranchRevisionData)
setIntegrationBranchRevisionData
in interface BuildChanges
@NotNull public BuildRepositoryChanges getBuildRepositoryChanges(long repositoryId)
getBuildRepositoryChanges
in interface BuildChanges
repositoryId
- repository idBuildRepositoryChanges
object for a specified repository id.Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.