Package com.atlassian.bamboo.commit
Class CommitContextImpl
java.lang.Object
com.atlassian.bamboo.commit.CommitContextImpl
- All Implemented Interfaces:
CommitContext,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCommitContextImpl(AuthorContext author, @NotNull List<CommitFile> files, @NotNull String comment, @NotNull Date date, String changeSetId) -
Method Summary
Modifier and TypeMethodDescriptionstatic CommitContextImpl.Builderbuilder()boolean@Nullable StringReturn VCS identifier for this changeset.@NotNull String@NotNull DategetDate()@NotNull List<CommitFile>getFiles()@Nullable StringinthashCode()booleanTrue if commit comes from another branch/is not in the ancestry path.toString()
-
Constructor Details
-
CommitContextImpl
public CommitContextImpl(AuthorContext author, @NotNull @NotNull List<CommitFile> files, @NotNull @NotNull String comment, @NotNull @NotNull Date date, String changeSetId)
-
-
Method Details
-
getAuthorContext
- Specified by:
getAuthorContextin interfaceCommitContext- Returns:
AuthorContextof commit author
-
getFiles
- Specified by:
getFilesin interfaceCommitContext- Returns:
ListofCommitFileobjects representing changed files
-
getComment
- Specified by:
getCommentin interfaceCommitContext- Returns:
- the commit comment
-
getDate
- Specified by:
getDatein interfaceCommitContext- Returns:
Dateof commit.
-
getBranch
-
getChangeSetId
Description copied from interface:CommitContextReturn VCS identifier for this changeset.- Specified by:
getChangeSetIdin interfaceCommitContext- Returns:
-
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
-
guessChangeSetId
- Specified by:
guessChangeSetIdin interfaceCommitContext
-
builder
-
hashCode
public int hashCode() -
equals
-
toString
-