Package com.atlassian.bamboo.v2.build
Class BuildChangesImpl
java.lang.Object
com.atlassian.bamboo.v2.build.BuildChangesImpl
- All Implemented Interfaces:
BuildChanges
,Serializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRepositoryChanges
(@NotNull BuildRepositoryChanges repositoryChanges) boolean
@NotNull BuildRepositoryChanges
getBuildRepositoryChanges
(long repositoryId) @NotNull com.google.common.collect.ImmutableList<CommitContext>
Get changes from all repositories@NotNull List<CommitContext>
getChanges
(long repositoryId) @Nullable PlanVcsRevisionData
long
getPreviousVcsRevisionKey
(long repositoryId) 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 consistentint
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)@NotNull PlanVcsRevisionData
getVcsRevisionData
(long repositoryId) ReturnsPlanVcsRevisionData
containingRepository
dependent vcs revision data for this checkout.@Nullable String
getVcsRevisionKey
(long repositoryId) Returns aRepository
dependent "id" for this checkout.int
hashCode()
void
setChanges
(long repositoryId, @NotNull List<CommitContext> changes) void
setIntegrationBranchRevisionData
(@NotNull PlanVcsRevisionData integrationBranchRevisionData) void
setIntegrationRepositoryId
(long integrationRepositoryId) void
setPreviousVcsRevisionKey
(long repositoryId, @Nullable String previousVcsRevisionKey) void
setSkippedCommitsCount
(long repositoryId, int skippedCommitsCount) void
setVcsRevisionKey
(long repositoryId, @NotNull String vcsRevisionKey) toString()
-
Constructor Details
-
BuildChangesImpl
-
BuildChangesImpl
public BuildChangesImpl()
-
-
Method Details
-
addRepositoryChanges
- Specified by:
addRepositoryChanges
in interfaceBuildChanges
-
getRepositoryChanges
- Specified by:
getRepositoryChanges
in interfaceBuildChanges
-
getVcsRevisionKey
Description copied from interface:BuildChanges
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 interfaceBuildChanges
- Returns:
- Revision "id"
-
setVcsRevisionKey
- Specified by:
setVcsRevisionKey
in interfaceBuildChanges
-
getVcsRevisionData
Description copied from interface:BuildChanges
ReturnsPlanVcsRevisionData
containingRepository
dependent vcs revision data for this checkout.- Specified by:
getVcsRevisionData
in interfaceBuildChanges
- Returns:
-
getPreviousVcsRevisionKey
Description copied from interface:BuildChanges
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 interfaceBuildChanges
- Returns:
-
setPreviousVcsRevisionKey
public void setPreviousVcsRevisionKey(long repositoryId, @Nullable @Nullable String previousVcsRevisionKey) - Specified by:
setPreviousVcsRevisionKey
in interfaceBuildChanges
-
getChanges
Description copied from interface:BuildChanges
List
ofCommit
objects that triggered off this particular build. Returns empty collection if no changes returned.- Specified by:
getChanges
in interfaceBuildChanges
- Returns:
List
ofCommit
s. May be empty
-
getChanges
Description copied from interface:BuildChanges
Get changes from all repositories- Specified by:
getChanges
in interfaceBuildChanges
- Returns:
-
setChanges
- Specified by:
setChanges
in interfaceBuildChanges
-
getSkippedCommitsCount
public int getSkippedCommitsCount(long repositoryId) Description copied from interface:BuildChanges
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 interfaceBuildChanges
- Returns:
- number of skipped commits
-
setSkippedCommitsCount
public void setSkippedCommitsCount(long repositoryId, int skippedCommitsCount) - Specified by:
setSkippedCommitsCount
in interfaceBuildChanges
-
getIntegrationRepositoryId
public long getIntegrationRepositoryId()- Specified by:
getIntegrationRepositoryId
in interfaceBuildChanges
-
setIntegrationRepositoryId
public void setIntegrationRepositoryId(long integrationRepositoryId) - Specified by:
setIntegrationRepositoryId
in interfaceBuildChanges
-
getIntegrationBranchRevisionData
- Specified by:
getIntegrationBranchRevisionData
in interfaceBuildChanges
-
setIntegrationBranchRevisionData
public void setIntegrationBranchRevisionData(@NotNull @NotNull PlanVcsRevisionData integrationBranchRevisionData) - Specified by:
setIntegrationBranchRevisionData
in interfaceBuildChanges
-
hashCode
public int hashCode() -
equals
-
toString
-
getBuildRepositoryChanges
- Specified by:
getBuildRepositoryChanges
in interfaceBuildChanges
- Parameters:
repositoryId
- repository id- Returns:
- complete
BuildRepositoryChanges
object for a specified repository id.
-