Class ItemUpdatedEvent

    • Field Detail

      • TYPE

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

      • 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 Detail

      • 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