Class CatalogEntityDeletedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.broadleafcommerce.data.tracking.core.catalog.CatalogEntityDeletedEvent
All Implemented Interfaces:
Serializable

public class CatalogEntityDeletedEvent extends org.springframework.context.ApplicationEvent
Published whenever a CatalogTrackable entity has been deleted.

This is useful to inform other services to delete any relationship entities that are no longer relevant.

Author:
Sunny Yu
See Also:
  • Constructor Details

    • CatalogEntityDeletedEvent

      public CatalogEntityDeletedEvent(Object source, Trackable catalogEntity, String catalogId)
      Parameters:
      source - triggered the event
      catalogEntity - deleted CatalogTrackable entity
      catalogId - the catalog id of the deleted entity
    • CatalogEntityDeletedEvent

      public CatalogEntityDeletedEvent(Object source, Trackable catalogEntity, String catalogId, @Nullable String applicationId)
      Parameters:
      source - triggered the event
      catalogEntity - deleted CatalogTrackable entity
      catalogId - the catalog id of the deleted entity
      applicationId - the application id of the deleted entity, if applicable
  • Method Details

    • getCatalogEntity

      public Trackable getCatalogEntity()
      The CatalogTrackable entity that was deleted.
    • getCatalogId

      public String getCatalogId()
      The id of the catalog of the entity being deleted, or the id of the catalog id that is being propagated to.
    • getApplicationId

      @Nullable public String getApplicationId()
      The id of the application of the entity being deleted.