Class RepositoryHookEvent

java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.hook.RepositoryHookEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RepositoryHookDeletedEvent, RepositoryHookDisabledEvent, RepositoryHookEnabledEvent, RepositoryHookSettingsChangedEvent

@AsynchronousPreferred @TransactionAware public class RepositoryHookEvent extends ApplicationEvent
Children of this event are fired when repository hooks are changed.

This event is internally audited with CoverageLevel.BASE level.

See Also:
  • Constructor Details

    • RepositoryHookEvent

      protected RepositoryHookEvent(@Nonnull Object source, @Nonnull String repositoryHookKey, @Nonnull Scope scope)
      Parameters:
      source - the object on which the event initially occurred
      repositoryHookKey - the key of the repository hook
      scope - scope that the hook event was created for
      Since:
      5.2
  • Method Details

    • getRepositoryHookKey

      @Nonnull public String getRepositoryHookKey()
    • getScope

      @Nonnull public Scope getScope()
      Returns:
      the scope that the hook event was created for
      Since:
      5.2