public class AbstractRepositoryModificationEvent extends RepositoryEvent
RepositoryEvent.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.
| Modifier and Type | Field and Description |
|---|---|
protected Repository |
newValue |
protected Repository |
oldValue |
source| Constructor and Description |
|---|
AbstractRepositoryModificationEvent(Object source,
Repository repository,
Repository oldValue,
Repository newValue) |
| Modifier and Type | Method and Description |
|---|---|
Repository |
getNewValue()
Retrieves the updated repository values.
|
Repository |
getOldValue()
Retrieves the original repository values.
|
boolean |
isMoved() |
boolean |
isNameChanged() |
boolean |
isOriginChanged() |
boolean |
isSlugChanged() |
boolean |
isStateChanged() |
getRepositorygetDate, getUsergetSource, toStringprotected final Repository newValue
protected final Repository oldValue
public AbstractRepositoryModificationEvent(@Nonnull Object source, @Nonnull Repository repository, @Nonnull Repository oldValue, @Nonnull Repository newValue)
@Nonnull public Repository getNewValue()
@Nonnull public Repository getOldValue()
public boolean isNameChanged()
public boolean isOriginChanged()
public boolean isMoved()
public boolean isSlugChanged()
public boolean isStateChanged()
Copyright © 2019 Atlassian. All rights reserved.