public abstract class EntityActionEvent<E extends Entity<?,?>,WB extends EntityModification.EntityModificationBuilder<?,?,E,?,?,WB>> extends EventObject
Modifier and Type | Class and Description |
---|---|
static class |
EntityActionEvent.Type
A type of entity action event.
|
source
Modifier | Constructor and Description |
---|---|
protected |
EntityActionEvent(Object source,
EntityActionEvent.Type eventType,
E oldValue,
E newValue,
WB modificationBuilder,
long creationTimestamp,
String description,
Registry serviceRegistry) |
Modifier and Type | Method and Description |
---|---|
long |
getCreationTimestamp()
The time when the event was triggered.
|
String |
getDescription()
The description of the event.
|
EntityActionEvent.Type |
getEventType()
The type of the event.
|
protected WB |
getModificationBuilder()
The modification builder.
|
protected E |
getNewValue()
The new value.
|
protected E |
getOldValue()
The old value.
|
Registry |
getServiceRegistry()
The service registry to which the service that triggered the action belongs.
|
Object |
getSource()
The object that triggered this event.
|
boolean |
isCreationEvent()
Returns whether the event is a creation event, i.e. the event is of type
CREATED . |
boolean |
isDeletionEvent()
Returns whether the event is a deletion event, i.e. the event is of type
DELETED . |
String |
toString() |
public Object getSource()
getSource
in class EventObject
public EntityActionEvent.Type getEventType()
protected E getOldValue()
protected E getNewValue()
protected WB getModificationBuilder()
public String getDescription()
public Registry getServiceRegistry()
public long getCreationTimestamp()
public boolean isCreationEvent()
CREATED
.getEventType()
,
EntityActionEvent.Type.CREATED
public boolean isDeletionEvent()
DELETED
.getEventType()
,
EntityActionEvent.Type.DELETED
public String toString()
toString
in class EventObject
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.