public class BuildRepositoryChangesImpl extends Object implements BuildRepositoryChanges
Constructor and Description |
---|
BuildRepositoryChangesImpl() |
BuildRepositoryChangesImpl(BuildRepositoryChanges other) |
BuildRepositoryChangesImpl(long repositoryId) |
BuildRepositoryChangesImpl(long repositoryId,
String vcsRevisionKey,
List<? extends CommitContext> changes) |
BuildRepositoryChangesImpl(String vcsRevisionKey) |
BuildRepositoryChangesImpl(String vcsRevisionKey,
List<? extends CommitContext> changes) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BuildRepositoryChanges o) |
boolean |
equals(Object o) |
List<CommitContext> |
getChanges()
|
String |
getCustomXmlData()
Repository specific data related to this changeset, e.g.
|
VcsBranch |
getOverriddenVcsBranch() |
String |
getPreviousVcsRevisionKey()
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 |
long |
getRepositoryId() |
int |
getSkippedCommitsCount()
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() |
String |
getVcsRevisionKey()
Returns a
Repository dependent "id" for this checkout. |
int |
hashCode() |
boolean |
isBuildTrigger()
Indicates if this changeset is reason to start a build.
|
void |
setBuildTrigger(boolean buildTrigger) |
void |
setChanges(List<? extends CommitContext> changes) |
void |
setCustomXmlData(String customXmlData) |
void |
setOverriddenVcsBranch(VcsBranch overriddenVcsBranch) |
void |
setPreviousVcsRevisionKey(String previousVcsRevisionKey) |
void |
setRepositoryId(long repositoryId) |
void |
setSkippedCommitsCount(int skippedCommitsCount) |
void |
setVcsLastChangeRevisionKey(String vcsLastChangeRevisionKey) |
void |
setVcsRevisionKey(String vcsRevisionKey) |
String |
toString() |
public BuildRepositoryChangesImpl(@NotNull BuildRepositoryChanges other)
public BuildRepositoryChangesImpl()
public BuildRepositoryChangesImpl(long repositoryId)
public BuildRepositoryChangesImpl(@NotNull String vcsRevisionKey)
public BuildRepositoryChangesImpl(@NotNull String vcsRevisionKey, @NotNull List<? extends CommitContext> changes)
public BuildRepositoryChangesImpl(long repositoryId, @Nullable String vcsRevisionKey, @Nullable List<? extends CommitContext> changes)
public long getRepositoryId()
getRepositoryId
in interface BuildRepositoryChanges
public void setRepositoryId(long repositoryId)
setRepositoryId
in interface BuildRepositoryChanges
@Nullable public String getVcsRevisionKey()
BuildRepositoryChanges
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 BuildRepositoryChanges
public void setVcsRevisionKey(@NotNull String vcsRevisionKey)
setVcsRevisionKey
in interface BuildRepositoryChanges
@Nullable public String getPreviousVcsRevisionKey()
BuildRepositoryChanges
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 BuildRepositoryChanges
public void setPreviousVcsRevisionKey(@Nullable String previousVcsRevisionKey)
setPreviousVcsRevisionKey
in interface BuildRepositoryChanges
public String getVcsLastChangeRevisionKey()
getVcsLastChangeRevisionKey
in interface BuildRepositoryChanges
public void setVcsLastChangeRevisionKey(String vcsLastChangeRevisionKey)
setVcsLastChangeRevisionKey
in interface BuildRepositoryChanges
@NotNull public List<CommitContext> getChanges()
BuildRepositoryChanges
List
of Commit
objects that triggered off this particular build. Returns empty collection if no changes
returned.getChanges
in interface BuildRepositoryChanges
List
of Commit
s. May be emptypublic final void setChanges(@NotNull List<? extends CommitContext> changes)
setChanges
in interface BuildRepositoryChanges
public int getSkippedCommitsCount()
BuildRepositoryChanges
getSkippedCommitsCount
in interface BuildRepositoryChanges
public void setSkippedCommitsCount(int skippedCommitsCount)
setSkippedCommitsCount
in interface BuildRepositoryChanges
public String getCustomXmlData()
BuildRepositoryChanges
getCustomXmlData
in interface BuildRepositoryChanges
public void setCustomXmlData(@Nullable String customXmlData)
setCustomXmlData
in interface BuildRepositoryChanges
public boolean isBuildTrigger()
BuildRepositoryChanges
isBuildTrigger
in interface BuildRepositoryChanges
public void setBuildTrigger(boolean buildTrigger)
setBuildTrigger
in interface BuildRepositoryChanges
@Nullable public VcsBranch getOverriddenVcsBranch()
getOverriddenVcsBranch
in interface BuildRepositoryChanges
public void setOverriddenVcsBranch(@NotNull VcsBranch overriddenVcsBranch)
setOverriddenVcsBranch
in interface BuildRepositoryChanges
public int compareTo(BuildRepositoryChanges o)
compareTo
in interface Comparable<BuildRepositoryChanges>
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.