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
-
Constructor Summary
ConstructorDescriptionCommitContextImpl
(AuthorContext author, @NotNull List<CommitFile> files, @NotNull String comment, @NotNull Date date, String changeSetId) -
Method Summary
Modifier and TypeMethodDescriptionstatic CommitContextImpl.Builder
builder()
boolean
@Nullable String
Return VCS identifier for this changeset.@NotNull String
@NotNull Date
getDate()
@NotNull List<CommitFile>
getFiles()
@Nullable String
int
hashCode()
boolean
True 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:
getAuthorContext
in interfaceCommitContext
- Returns:
AuthorContext
of commit author
-
getFiles
- Specified by:
getFiles
in interfaceCommitContext
- Returns:
List
ofCommitFile
objects representing changed files
-
getComment
- Specified by:
getComment
in interfaceCommitContext
- Returns:
- the commit comment
-
getDate
- Specified by:
getDate
in interfaceCommitContext
- Returns:
Date
of commit.
-
getBranch
-
getChangeSetId
Description copied from interface:CommitContext
Return VCS identifier for this changeset.- Specified by:
getChangeSetId
in interfaceCommitContext
- Returns:
-
isForeignCommit
public boolean isForeignCommit()Description copied from interface:CommitContext
True 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:
isForeignCommit
in interfaceCommitContext
-
guessChangeSetId
- Specified by:
guessChangeSetId
in interfaceCommitContext
-
builder
-
hashCode
public int hashCode() -
equals
-
toString
-