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 int
compareTo(BuildRepositoryChanges o)
boolean
equals(Object o)
@Nullable VcsBranch
getActualBranch()
@NotNull List<CommitContext>
getChanges()
String
getCustomXmlData()
Repository specific data related to this changeset, e.g.@Nullable String
getPreviousVcsRevisionKey()
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 consistentlong
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)@Nullable String
getVcsRevisionKey()
Returns aRepository
dependent "id" for this checkout.int
hashCode()
boolean
isBuildTrigger()
Indicates if this changeset is reason to start a build.void
setActualBranch(@Nullable VcsBranch actualBranch)
void
setBuildTrigger(boolean buildTrigger)
void
setChanges(@NotNull List<? extends CommitContext> changes)
void
setCustomXmlData(@Nullable String customXmlData)
void
setPreviousVcsRevisionKey(@Nullable String previousVcsRevisionKey)
void
setRepositoryId(long repositoryId)
void
setSkippedCommitsCount(int skippedCommitsCount)
void
setVcsRevisionKey(@NotNull String vcsRevisionKey)
String
toString()
-
-
-
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:
getRepositoryId
in interfaceBuildRepositoryChanges
-
setRepositoryId
public void setRepositoryId(long repositoryId)
- Specified by:
setRepositoryId
in interfaceBuildRepositoryChanges
-
getVcsRevisionKey
@Nullable public @Nullable String getVcsRevisionKey()
Description copied from interface:BuildRepositoryChanges
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 interfaceBuildRepositoryChanges
- Returns:
- Revision "id"
-
setVcsRevisionKey
public void setVcsRevisionKey(@NotNull @NotNull String vcsRevisionKey)
- Specified by:
setVcsRevisionKey
in interfaceBuildRepositoryChanges
-
getPreviousVcsRevisionKey
@Nullable public @Nullable String getPreviousVcsRevisionKey()
Description copied from interface:BuildRepositoryChanges
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 interfaceBuildRepositoryChanges
- Returns:
-
setPreviousVcsRevisionKey
public void setPreviousVcsRevisionKey(@Nullable @Nullable String previousVcsRevisionKey)
- Specified by:
setPreviousVcsRevisionKey
in interfaceBuildRepositoryChanges
-
getChanges
@NotNull public @NotNull List<CommitContext> getChanges()
Description copied from interface:BuildRepositoryChanges
List
ofCommit
objects that triggered off this particular build. Returns empty collection if no changes returned.- Specified by:
getChanges
in interfaceBuildRepositoryChanges
- Returns:
List
ofCommit
s. May be empty
-
setChanges
public final void setChanges(@NotNull @NotNull List<? extends CommitContext> changes)
- Specified by:
setChanges
in interfaceBuildRepositoryChanges
-
getSkippedCommitsCount
public int getSkippedCommitsCount()
Description copied from interface:BuildRepositoryChanges
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 interfaceBuildRepositoryChanges
- Returns:
- number of skipped commits
-
setSkippedCommitsCount
public void setSkippedCommitsCount(int skippedCommitsCount)
- Specified by:
setSkippedCommitsCount
in interfaceBuildRepositoryChanges
-
getCustomXmlData
public String getCustomXmlData()
Description copied from interface:BuildRepositoryChanges
Repository specific data related to this changeset, e.g. information on SVN externals. Only available server-side.- Specified by:
getCustomXmlData
in interfaceBuildRepositoryChanges
- Returns:
-
setCustomXmlData
public void setCustomXmlData(@Nullable @Nullable String customXmlData)
- Specified by:
setCustomXmlData
in interfaceBuildRepositoryChanges
-
isBuildTrigger
public boolean isBuildTrigger()
Description copied from interface:BuildRepositoryChanges
Indicates if this changeset is reason to start a build.- Specified by:
isBuildTrigger
in 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:
setBuildTrigger
in interfaceBuildRepositoryChanges
-
getActualBranch
@Nullable public @Nullable VcsBranch getActualBranch()
- Specified by:
getActualBranch
in interfaceBuildRepositoryChanges
-
setActualBranch
public void setActualBranch(@Nullable @Nullable VcsBranch actualBranch)
- Specified by:
setActualBranch
in interfaceBuildRepositoryChanges
-
compareTo
public int compareTo(BuildRepositoryChanges o)
- Specified by:
compareTo
in interfaceComparable<BuildRepositoryChanges>
-
-