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:
  • CatalogEntityDeletedEvent
  • InternalPersistenceEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(org.springframework.context.ApplicationEvent event)
    Whether the given ApplicationEvent can be handled.
    void
    handle(org.springframework.context.ApplicationEvent event)
    Handles the ApplicationEvent that represents the catalog entity deletion.
  • Method Details

    • canHandle

      boolean canHandle(org.springframework.context.ApplicationEvent event)
      Whether the given ApplicationEvent can be handled.
      Parameters:
      event - the ApplicationEvent that potentially represents the catalog entity deletion
      Returns:
      true if the given ApplicationEvent can be handled, otherwise false
    • handle

      void handle(org.springframework.context.ApplicationEvent event)
      Handles the ApplicationEvent that represents the catalog entity deletion.
      Parameters:
      event - the ApplicationEvent that potentially represents the catalog entity deletion