Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.event;import org.springframework.context.ApplicationEvent;/*** Event published when a TagListing entity is created, updated, or deleted.* Used to trigger real-time Solr index updates.*/public class TagListingChangedEvent extends ApplicationEvent {public enum ChangeType {PRICE_UPDATED,STATUS_CHANGED,CREATED,DELETED}private final int itemId;private final int catalogId;private final ChangeType changeType;public TagListingChangedEvent(Object source, int itemId, int catalogId, ChangeType changeType) {super(source);this.itemId = itemId;this.catalogId = catalogId;this.changeType = changeType;}public int getItemId() {return itemId;}public int getCatalogId() {return catalogId;}public ChangeType getChangeType() {return changeType;}@Overridepublic String toString() {return "TagListingChangedEvent{" +"itemId=" + itemId +", catalogId=" + catalogId +", changeType=" + changeType +'}';}}