@AsynchronousPreferred @TransactionAware public class

RepositoryHookEvent

extends ApplicationEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.event.hook.RepositoryHookEvent
Known Direct Subclasses

Class Overview

Children of this event are fired when repository hooks are changed.

This event is internally audited with a HIGH priority.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Protected Constructors
@Deprecated RepositoryHookEvent(Object source, Repository repository, String repositoryHookKey)
This constructor is deprecated. in 5.2 for removal in 6.0. Use RepositoryHookEvent(Object, String, Scope) instead.
RepositoryHookEvent(Object source, String repositoryHookKey, Scope scope)
Public Methods
@Deprecated @Nullable Repository getRepository()
This method is deprecated. in 5.2 for removal in 6.0. Use getScope() instead. This will return null when RepositoryHookEvent is fired for any Scope other than RepositoryScope
@Nonnull String getRepositoryHookKey()
@Nonnull Scope getScope()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Protected Constructors

@Deprecated protected RepositoryHookEvent (Object source, Repository repository, String repositoryHookKey)

This constructor is deprecated.
in 5.2 for removal in 6.0. Use RepositoryHookEvent(Object, String, Scope) instead.

protected RepositoryHookEvent (Object source, String repositoryHookKey, Scope scope)

Public Methods

@Deprecated @Nullable public Repository getRepository ()

This method is deprecated.
in 5.2 for removal in 6.0. Use getScope() instead. This will return null when RepositoryHookEvent is fired for any Scope other than RepositoryScope

@Nonnull public String getRepositoryHookKey ()

@Nonnull public Scope getScope ()