Class RepositoryPushEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.repository.RepositoryEvent
com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent
com.atlassian.bitbucket.event.repository.RepositoryPushEvent
- All Implemented Interfaces:
RepositoryRefsChangedEvent
,Serializable
Event that is raised when a user pushes one or more
refs
to a repository.
A push does not guarantee that new commits have been added to the repository; it only guarantees at least one
ref
has been changed
.
Listeners that are interested in all ref changes, not just those stemming from pushes (such as pull request merges),
should listen for RepositoryRefsChangedEvent
s instead.
This event is internally audited with CoverageLevel.FULL
level
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent
EMPTY_HASH
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryPushEvent
(Object source, Repository repository, Collection<RefChange> refChanges) -
Method Summary
Methods inherited from class com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent
getRefChanges
Methods inherited from class com.atlassian.bitbucket.event.repository.RepositoryEvent
getRepository
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bitbucket.event.repository.RepositoryRefsChangedEvent
getRepository, getUser
-
Constructor Details
-
RepositoryPushEvent
public RepositoryPushEvent(@Nonnull Object source, @Nonnull Repository repository, @Nonnull Collection<RefChange> refChanges)
-