Package com.atlassian.bamboo.v2.build
Class BuildRepositoryChangesImpl
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.BuildRepositoryChangesImpl
-
- All Implemented Interfaces:
BuildRepositoryChanges,Serializable,Comparable<BuildRepositoryChanges>
public class BuildRepositoryChangesImpl extends Object implements BuildRepositoryChanges
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildRepositoryChangesImpl()Deprecated.since 5.14 avoid using constructor that produces incomplete dataBuildRepositoryChangesImpl(long repositoryId)Deprecated.since 5.14 avoid using constructor that produces incomplete dataBuildRepositoryChangesImpl(long repositoryId, @Nullable String vcsRevisionKey, @Nullable List<? extends CommitContext> changes)Deprecated.since 5.14 avoid using constructor that produces incomplete dataBuildRepositoryChangesImpl(long repositoryId, @Nullable String vcsRevisionKey, @Nullable List<? extends CommitContext> changes, @Nullable VcsBranch actualBranch)BuildRepositoryChangesImpl(@NotNull BuildRepositoryChanges other)BuildRepositoryChangesImpl(@NotNull String vcsRevisionKey)Deprecated.since 5.14 avoid using constructor that produces incomplete dataBuildRepositoryChangesImpl(@NotNull String vcsRevisionKey, @NotNull List<? extends CommitContext> changes)Deprecated.since 5.14 avoid using constructor that produces incomplete data
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BuildRepositoryChanges o)booleanequals(Object o)@Nullable VcsBranchgetActualBranch()@NotNull List<CommitContext>getChanges()StringgetCustomXmlData()Repository specific data related to this changeset, e.g. information on SVN externals.@Nullable StringgetPreviousVcsRevisionKey()Returns aRepositorydependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from theRepositoryas to be internally consistentlonggetRepositoryId()intgetSkippedCommitsCount()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)@Nullable StringgetVcsRevisionKey()Returns aRepositorydependent "id" for this checkout. e.g. revision number for SVN etc.inthashCode()booleanisBuildTrigger()Indicates if this changeset is reason to start a build.voidsetActualBranch(@Nullable VcsBranch actualBranch)voidsetBuildTrigger(boolean buildTrigger)voidsetChanges(@NotNull List<? extends CommitContext> changes)voidsetCustomXmlData(@Nullable String customXmlData)voidsetPreviousVcsRevisionKey(@Nullable String previousVcsRevisionKey)voidsetRepositoryId(long repositoryId)voidsetSkippedCommitsCount(int skippedCommitsCount)voidsetVcsRevisionKey(@NotNull String vcsRevisionKey)StringtoString()
-
-
-
Constructor Detail
-
BuildRepositoryChangesImpl
public BuildRepositoryChangesImpl(@NotNull @NotNull BuildRepositoryChanges other)
-
BuildRepositoryChangesImpl
@Deprecated public BuildRepositoryChangesImpl()
Deprecated.since 5.14 avoid using constructor that produces incomplete data
-
BuildRepositoryChangesImpl
@Deprecated public BuildRepositoryChangesImpl(long repositoryId)
Deprecated.since 5.14 avoid using constructor that produces incomplete data
-
BuildRepositoryChangesImpl
@Deprecated public BuildRepositoryChangesImpl(@NotNull @NotNull String vcsRevisionKey)
Deprecated.since 5.14 avoid using constructor that produces incomplete data
-
BuildRepositoryChangesImpl
@Deprecated public BuildRepositoryChangesImpl(@NotNull @NotNull String vcsRevisionKey, @NotNull @NotNull List<? extends CommitContext> changes)
Deprecated.since 5.14 avoid using constructor that produces incomplete data
-
BuildRepositoryChangesImpl
@Deprecated public BuildRepositoryChangesImpl(long repositoryId, @Nullable @Nullable String vcsRevisionKey, @Nullable @Nullable List<? extends CommitContext> changes)
Deprecated.since 5.14 avoid using constructor that produces incomplete data
-
BuildRepositoryChangesImpl
public BuildRepositoryChangesImpl(long repositoryId, @Nullable @Nullable String vcsRevisionKey, @Nullable @Nullable List<? extends CommitContext> changes, @Nullable @Nullable VcsBranch actualBranch)
-
-
Method Detail
-
getRepositoryId
public long getRepositoryId()
- Specified by:
getRepositoryIdin interfaceBuildRepositoryChanges
-
setRepositoryId
public void setRepositoryId(long repositoryId)
- Specified by:
setRepositoryIdin interfaceBuildRepositoryChanges
-
getVcsRevisionKey
@Nullable public @Nullable String getVcsRevisionKey()
Description copied from interface:BuildRepositoryChangesReturns aRepositorydependent "id" for this checkout. e.g. revision number for SVN etc. This is value is taken from theRepositoryas to be internally consistent- Specified by:
getVcsRevisionKeyin interfaceBuildRepositoryChanges- Returns:
- Revision "id"
-
setVcsRevisionKey
public void setVcsRevisionKey(@NotNull @NotNull String vcsRevisionKey)- Specified by:
setVcsRevisionKeyin interfaceBuildRepositoryChanges
-
getPreviousVcsRevisionKey
@Nullable public @Nullable String getPreviousVcsRevisionKey()
Description copied from interface:BuildRepositoryChangesReturns aRepositorydependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from theRepositoryas to be internally consistent- Specified by:
getPreviousVcsRevisionKeyin interfaceBuildRepositoryChanges- Returns:
-
setPreviousVcsRevisionKey
public void setPreviousVcsRevisionKey(@Nullable @Nullable String previousVcsRevisionKey)- Specified by:
setPreviousVcsRevisionKeyin interfaceBuildRepositoryChanges
-
getChanges
@NotNull public @NotNull List<CommitContext> getChanges()
Description copied from interface:BuildRepositoryChangesListofCommitobjects that triggered off this particular build. Returns empty collection if no changes returned.- Specified by:
getChangesin interfaceBuildRepositoryChanges- Returns:
ListofCommits. May be empty
-
setChanges
public final void setChanges(@NotNull @NotNull List<? extends CommitContext> changes)- Specified by:
setChangesin interfaceBuildRepositoryChanges
-
getSkippedCommitsCount
public int getSkippedCommitsCount()
Description copied from interface:BuildRepositoryChangesThe 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 interfaceBuildRepositoryChanges- Returns:
- number of skipped commits
-
setSkippedCommitsCount
public void setSkippedCommitsCount(int skippedCommitsCount)
- Specified by:
setSkippedCommitsCountin interfaceBuildRepositoryChanges
-
getCustomXmlData
public String getCustomXmlData()
Description copied from interface:BuildRepositoryChangesRepository specific data related to this changeset, e.g. information on SVN externals. Only available server-side.- Specified by:
getCustomXmlDatain interfaceBuildRepositoryChanges- Returns:
-
setCustomXmlData
public void setCustomXmlData(@Nullable @Nullable String customXmlData)- Specified by:
setCustomXmlDatain interfaceBuildRepositoryChanges
-
isBuildTrigger
public boolean isBuildTrigger()
Description copied from interface:BuildRepositoryChangesIndicates if this changeset is reason to start a build.- Specified by:
isBuildTriggerin interfaceBuildRepositoryChanges- Returns:
- true iff repository is on the triggering repository list of event triggering change detection produciong this object
-
setBuildTrigger
public void setBuildTrigger(boolean buildTrigger)
- Specified by:
setBuildTriggerin interfaceBuildRepositoryChanges
-
getActualBranch
@Nullable public @Nullable VcsBranch getActualBranch()
- Specified by:
getActualBranchin interfaceBuildRepositoryChanges
-
setActualBranch
public void setActualBranch(@Nullable @Nullable VcsBranch actualBranch)- Specified by:
setActualBranchin interfaceBuildRepositoryChanges
-
compareTo
public int compareTo(BuildRepositoryChanges o)
- Specified by:
compareToin interfaceComparable<BuildRepositoryChanges>
-
-