Package de.hybris.platform.cronjob.jalo
Class ChangeEvent
- java.lang.Object
-
- de.hybris.platform.cronjob.jalo.ChangeEvent
-
- All Implemented Interfaces:
java.io.Serializable
public final class ChangeEvent extends java.lang.Object implements java.io.SerializableTheChangeEventis fired each time a newChangeDescriptoris instanciated. It offers access to the description of the change and the changedItem.- See Also:
ChangeDescriptor,ChangeListener, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeEvent(ChangeDescriptor descriptor)Creates a newChangeEventfor the specifiedChangeDescriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemgetChangedItem()Returns theItem, which was modified.java.lang.StringgetTopic()Returns the topic of theChangeEvent.
-
-
-
Constructor Detail
-
ChangeEvent
public ChangeEvent(ChangeDescriptor descriptor)
Creates a newChangeEventfor the specifiedChangeDescriptor.- Parameters:
descriptor- theChangeDescriptor
-
-
Method Detail
-
getTopic
public java.lang.String getTopic()
Returns the topic of theChangeEvent. (Which equivalent to the changetype of theChangeDescriptor;GeneratedChangeDescriptor.getChangeType()).- Returns:
- Returns the topic of the
ChangeEvent
-
getChangedItem
public Item getChangedItem()
Returns theItem, which was modified. This method can returnnull, since not always a change is related to aItem.- Returns:
- Returns the
Item, which was modified.
-
-