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 AuthorContext
getAuthorContext()
@Nullable String
getChangeSetId()
Return VCS identifier for this changeset.@NotNull String
getComment()
@NotNull Date
getDate()
@NotNull List<CommitFile>
getFiles()
@NotNull String
getUrl()
@Nullable String
guessChangeSetId()
boolean
isForeignCommit()
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:
getAuthorContext
in interfaceCommitContext
- Returns:
AuthorContext
of commit author
-
getFiles
@NotNull public @NotNull List<CommitFile> getFiles()
- Specified by:
getFiles
in interfaceCommitContext
- Returns:
List
ofCommitFile
objects representing changed files
-
getComment
@NotNull public @NotNull String getComment()
- Specified by:
getComment
in interfaceCommitContext
- Returns:
- the commit comment
-
getDate
@NotNull public @NotNull Date getDate()
- Specified by:
getDate
in interfaceCommitContext
- Returns:
Date
of commit.
-
getChangeSetId
@Nullable public @Nullable String getChangeSetId()
Description copied from interface:CommitContext
Return VCS identifier for this changeset.- Specified by:
getChangeSetId
in interfaceCommitContext
- Returns:
-
guessChangeSetId
@Nullable public @Nullable String guessChangeSetId()
- Specified by:
guessChangeSetId
in interfaceCommitContext
-
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
-
getUrl
@NotNull public @NotNull String getUrl()
-
-