@TransactionAware @Audited public abstract class

RefRestrictionEvent

extends ApplicationEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.repository.ref.restriction.RefRestrictionEvent
Known Direct Subclasses

Class Overview

The abstract base for all events related to RefRestrictions.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
@Deprecated RefRestrictionEvent(Object source, Repository repository, RefRestriction restriction)
This constructor is deprecated. in 5.1 for removal in 6.0. Use RefRestrictionEvent(Object, Scope, RefRestriction) instead
RefRestrictionEvent(Object source, RefRestriction restriction)
Public Methods
@Deprecated @Nullable Repository getRepository()
This method is deprecated. in 5.1 for removal in 6.0. The ref restriction API is going through a maintenance cycle.
@Nonnull RefRestriction getRestriction()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

@Deprecated public RefRestrictionEvent (Object source, Repository repository, RefRestriction restriction)

This constructor is deprecated.
in 5.1 for removal in 6.0. Use RefRestrictionEvent(Object, Scope, RefRestriction) instead

public RefRestrictionEvent (Object source, RefRestriction restriction)

Public Methods

@Deprecated @Nullable public Repository getRepository ()

This method is deprecated.
in 5.1 for removal in 6.0. The ref restriction API is going through a maintenance cycle.

@Nonnull public RefRestriction getRestriction ()