Class ItemUpdatedEvent

All Implemented Interfaces:
Event

@NonNullByDefault public class ItemUpdatedEvent extends AbstractItemRegistryEvent
An ItemUpdatedEvent notifies subscribers that an item has been updated. Item updated events must be created with the ItemEventFactory.
Author:
Stefan Bußweiler - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
      The item updated event type.
  • Constructor Details

    • ItemUpdatedEvent

      protected ItemUpdatedEvent(String topic, String payload, ItemDTO item, ItemDTO oldItem)
      Constructs a new item updated event object.
      Parameters:
      topic - the topic
      payload - the payload
      item - the item data transfer object
      oldItem - the old item data transfer object
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • getOldItem

      public ItemDTO getOldItem()
      Gets the old item.
      Returns:
      the oldItem
    • toString

      public String toString()
      Overrides:
      toString in class Object