Class PullRequestDeletedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.pull.PullRequestEvent
com.atlassian.bitbucket.event.pull.PullRequestDeletedEvent
- All Implemented Interfaces:
Serializable
Event that is raised when a pull request is deleted.
- Since:
- 5.1
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionPullRequestDeletedEvent
(Object source, PullRequest pullRequest, Collection<Watcher> watchers) -
Method Summary
Modifier and TypeMethodDescriptionListeners of this event aren't able to callWatcherService.search(com.atlassian.bitbucket.watcher.WatcherSearchRequest, com.atlassian.bitbucket.util.PageRequest)
to find watchers of the pull request because the pull request has already been deleted.Methods inherited from class com.atlassian.bitbucket.event.pull.PullRequestEvent
getAction, getPullRequest
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
PullRequestDeletedEvent
public PullRequestDeletedEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull Collection<Watcher> watchers)
-
-
Method Details
-
getWatchers
Listeners of this event aren't able to callWatcherService.search(com.atlassian.bitbucket.watcher.WatcherSearchRequest, com.atlassian.bitbucket.util.PageRequest)
to find watchers of the pull request because the pull request has already been deleted.- Returns:
- the watchers of the pull request that was deleted
-