Class RssNotification.CommitWithUrl
- java.lang.Object
-
- com.atlassian.bamboo.notification.rss.RssNotification.CommitWithUrl
-
- All Implemented Interfaces:
CommitContext
- Enclosing class:
- RssNotification
public static class RssNotification.CommitWithUrl extends Object implements CommitContext
-
-
Constructor Summary
Constructors Constructor Description CommitWithUrl(@NotNull CommitContext commitContext, @Nullable String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorContextgetAuthorContext()@Nullable StringgetChangeSetId()Return VCS identifier for this changeset.@NotNull StringgetComment()@NotNull DategetDate()@NotNull List<CommitFile>getFiles()@NotNull StringgetUrl()@Nullable StringguessChangeSetId()booleanisForeignCommit()True if commit comes from another branch/is not in the ancestry path.
-
-
-
Constructor Detail
-
CommitWithUrl
public CommitWithUrl(@NotNull @NotNull CommitContext commitContext, @Nullable @Nullable String url)
-
-
Method Detail
-
getAuthorContext
public AuthorContext getAuthorContext()
- Specified by:
getAuthorContextin interfaceCommitContext- Returns:
AuthorContextof commit author
-
getFiles
@NotNull public @NotNull List<CommitFile> getFiles()
- Specified by:
getFilesin interfaceCommitContext- Returns:
ListofCommitFileobjects representing changed files
-
getComment
@NotNull public @NotNull String getComment()
- Specified by:
getCommentin interfaceCommitContext- Returns:
- the commit comment
-
getDate
@NotNull public @NotNull Date getDate()
- Specified by:
getDatein interfaceCommitContext- Returns:
Dateof commit.
-
getChangeSetId
@Nullable public @Nullable String getChangeSetId()
Description copied from interface:CommitContextReturn VCS identifier for this changeset.- Specified by:
getChangeSetIdin interfaceCommitContext- Returns:
-
guessChangeSetId
@Nullable public @Nullable String guessChangeSetId()
- Specified by:
guessChangeSetIdin interfaceCommitContext
-
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
-
getUrl
@NotNull public @NotNull String getUrl()
-
-