Package com.atlassian.bamboo.v2.build
Class BuildRepositoryChangesImpl
java.lang.Object
com.atlassian.bamboo.v2.build.BuildRepositoryChangesImpl
- All Implemented Interfaces:
BuildRepositoryChanges
,Serializable
,Comparable<BuildRepositoryChanges>
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated.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
Modifier and TypeMethodDescriptionint
boolean
@Nullable VcsBranch
@NotNull List<CommitContext>
Repository specific data related to this changeset, e.g.@Nullable String
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
int
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
Returns aRepository
dependent "id" for this checkout.int
hashCode()
boolean
Indicates if this changeset is reason to start a build.void
setActualBranch
(@Nullable VcsBranch actualBranch) void
setBuildTrigger
(boolean buildTrigger) final 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) toString()
-
Constructor Details
-
BuildRepositoryChangesImpl
-
BuildRepositoryChangesImpl
Deprecated.since 5.14 avoid using constructor that produces incomplete data -
BuildRepositoryChangesImpl
Deprecated.since 5.14 avoid using constructor that produces incomplete data -
BuildRepositoryChangesImpl
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 Details
-
getRepositoryId
public long getRepositoryId()- Specified by:
getRepositoryId
in interfaceBuildRepositoryChanges
-
setRepositoryId
public void setRepositoryId(long repositoryId) - Specified by:
setRepositoryId
in interfaceBuildRepositoryChanges
-
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
- Specified by:
setVcsRevisionKey
in interfaceBuildRepositoryChanges
-
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
- Specified by:
setPreviousVcsRevisionKey
in interfaceBuildRepositoryChanges
-
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
- 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
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
- 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
- Specified by:
getActualBranch
in interfaceBuildRepositoryChanges
-
setActualBranch
- Specified by:
setActualBranch
in interfaceBuildRepositoryChanges
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<BuildRepositoryChanges>
-
toString
-