Interface CatalogEntityDeletedEventHandler
- All Known Implementing Classes:
AbstractCatalogEntityDeletedEventHandler,CategoryAssetCatalogEntityDeletedEventHandler,CategoryProductCatalogEntityDeletedEventHandler,OptionTemplateCatalogEntityDeletedEventHandler,ProductAssetCatalogEntityDeletedEventHandler,ProductTagCatalogEntityDeletedEventHandler,PromotionalCategoryProductCatalogEntityDeletedEventHandler,PromotionalProductCatalogEntityDeletedEventHandler,TranslationCatalogEntityDeletedEventHandler,VariantCatalogEntityDeletedEventHandler
public interface CatalogEntityDeletedEventHandler
Handler to handle events for when a
CatalogTrackable entity is deleted, which is used to
clean up the orphaned relationship entities when the main entity is deleted.- Author:
- Sunny Yu
- See Also:
-
CatalogEntityDeletedEventInternalPersistenceEvent
-
Method Summary
-
Method Details
-
canHandle
boolean canHandle(org.springframework.context.ApplicationEvent event) Whether the givenApplicationEventcan be handled.- Parameters:
event- theApplicationEventthat potentially represents the catalog entity deletion- Returns:
- true if the given
ApplicationEventcan be handled, otherwise false
-
handle
void handle(org.springframework.context.ApplicationEvent event) Handles theApplicationEventthat represents the catalog entity deletion.- Parameters:
event- theApplicationEventthat potentially represents the catalog entity deletion
-