Package com.atlassian.bamboo.commit
Class CommitImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.commit.CommitImpl
- All Implemented Interfaces:
Commit,CommitContext,BambooIdProvider,BambooObject,Cloneable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFile(CommitFile commitFile) intbooleanReturn VCS identifier for this changeset.@NotNull String@NotNull DategetDate()@NotNull List<CommitFile>getFiles()@Nullable RepositoryChangeset@Nullable StringinthashCode()booleanTrue if commit comes from another branch/is not in the ancestry path.voidWho made the commitvoidsetChangeSetId(String changeSetId) voidsetComment(String comment) voidvoidsetFiles(List<CommitFile> files) voidsetForeignCommit(boolean foreignCommit) voidsetRepositoryChangeset(@Nullable RepositoryChangeset repositoryChangeset) toString()Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
CommitImpl
public CommitImpl()
-
-
Method Details
-
getAuthor
-
getAuthorContext
- Specified by:
getAuthorContextin interfaceCommitContext- Returns:
AuthorContextof commit author
-
setAuthor
Description copied from interface:CommitWho made the commit -
addFile
-
getFiles
- Specified by:
getFilesin interfaceCommitContext- Returns:
ListofCommitFileobjects representing changed files
-
setFiles
-
getComment
- Specified by:
getCommentin interfaceCommitContext- Returns:
- the commit comment
-
guessChangeSetId
- Specified by:
guessChangeSetIdin interfaceCommitContext
-
setComment
-
getChangeSetId
Description copied from interface:CommitContextReturn VCS identifier for this changeset.- Specified by:
getChangeSetIdin interfaceCommitContext- Returns:
-
setChangeSetId
-
getDate
- Specified by:
getDatein interfaceCommitContext- Returns:
Dateof commit.
-
setDate
-
getRepositoryChangeset
- Specified by:
getRepositoryChangesetin interfaceCommit- Returns:
RepositoryChangesetthis commit belongs to
-
setRepositoryChangeset
- Specified by:
setRepositoryChangesetin interfaceCommit
-
isForeignCommit
public boolean isForeignCommit()Description copied from interface:CommitContextTrue if commit comes from another branch/is not in the ancestry path. (DVCS only) It is allowed to return false negatives but not false positives. Will return false if feature not supported by repository plugin. In some cases (git) may return false even if commit originated in different branch due to git limitations.- Specified by:
isForeignCommitin interfaceCommitContext
-
setForeignCommit
public void setForeignCommit(boolean foreignCommit) - Specified by:
setForeignCommitin interfaceCommit
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
compareTo
-
toString
-