Class ChangeEvent

java.lang.Object
de.hybris.platform.cronjob.jalo.ChangeEvent
All Implemented Interfaces:
Serializable

public final class ChangeEvent extends Object implements Serializable
The ChangeEvent is fired each time a new ChangeDescriptor is instanciated. It offers access to the description of the change and the changed Item.
See Also:
  • Constructor Details

    • ChangeEvent

      public ChangeEvent(ChangeDescriptor descriptor)
      Creates a new ChangeEvent for the specified ChangeDescriptor.
      Parameters:
      descriptor - the ChangeDescriptor
  • Method Details

    • getTopic

      public String getTopic()
      Returns the topic of the ChangeEvent. (Which equivalent to the changetype of the ChangeDescriptor; GeneratedChangeDescriptor.getChangeType()).
      Returns:
      Returns the topic of the ChangeEvent
    • getChangedItem

      public Item getChangedItem()
      Returns the Item, which was modified. This method can return null, since not always a change is related to a Item.
      Returns:
      Returns the Item, which was modified.