Package com.atlassian.bamboo.commit
Interface Commit
-
- All Superinterfaces:
BambooIdProvider
,BambooObject
,CommitContext
- All Known Implementing Classes:
CommitImpl
@PublicApi public interface Commit extends BambooObject, CommitContext
Interface that represents a single commit set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Author
getAuthor()
@Nullable RepositoryChangeset
getRepositoryChangeset()
void
setAuthor(Author author)
Who made the commitvoid
setFiles(List<CommitFile> files)
void
setForeignCommit(boolean foreignCommit)
void
setRepositoryChangeset(RepositoryChangeset repositoryChangeset)
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface com.atlassian.bamboo.commit.CommitContext
getAuthorContext, getChangeSetId, getComment, getDate, getFiles, guessChangeSetId, isForeignCommit
-
-
-
-
Field Detail
-
UNKNOWN
static final String UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAuthor
Author getAuthor()
-
setAuthor
void setAuthor(Author author)
Who made the commit- Parameters:
author
-
-
getRepositoryChangeset
@Nullable @Nullable RepositoryChangeset getRepositoryChangeset()
- Returns:
RepositoryChangeset
this commit belongs to
-
setRepositoryChangeset
void setRepositoryChangeset(RepositoryChangeset repositoryChangeset)
-
setFiles
void setFiles(List<CommitFile> files)
- Parameters:
files
- - files to update this commit with.
-
setForeignCommit
void setForeignCommit(boolean foreignCommit)
- Parameters:
foreignCommit
-- Since:
- 5.5
-
-