public class

AbstractRepositoryModificationEvent

extends RepositoryEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.event.repository.RepositoryEvent
         ↳ com.atlassian.bitbucket.event.repository.AbstractRepositoryModificationEvent
Known Direct Subclasses

Class Overview

Base class for constructing events which relate to repository modifications.

getRepository() always returns the current persisted state for the repository. Whether that matches the old values or the new values depends on the specific event, and will be documented on the derived event class.

Summary

Fields
protected final Repository newValue
protected final Repository oldValue
[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
AbstractRepositoryModificationEvent(Object source, Repository repository, Repository oldValue, Repository newValue)
Public Methods
@Nonnull Repository getNewValue()
Retrieves the updated repository values.
@Nonnull Repository getOldValue()
Retrieves the original repository values.
boolean isMoved()
boolean isNameChanged()
boolean isOriginChanged()
boolean isSlugChanged()
boolean isStateChanged()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.repository.RepositoryEvent
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Fields

protected final Repository newValue

protected final Repository oldValue

Public Constructors

public AbstractRepositoryModificationEvent (Object source, Repository repository, Repository oldValue, Repository newValue)

Public Methods

@Nonnull public Repository getNewValue ()

Retrieves the updated repository values.

Returns
  • the updated repository

@Nonnull public Repository getOldValue ()

Retrieves the original repository values.

Returns
  • the original repository

public boolean isMoved ()

public boolean isNameChanged ()

public boolean isOriginChanged ()

public boolean isSlugChanged ()

public boolean isStateChanged ()