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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionCatalogEntityDeletedEvent
(Object source, Trackable catalogEntity, String catalogId) CatalogEntityDeletedEvent
(Object source, Trackable catalogEntity, String catalogId, String applicationId) -
Method Summary
Modifier and TypeMethodDescriptionThe id of the application of the entity being deleted.TheCatalogTrackable
entity that was deleted.The id of the catalog of the entity being deleted, or the id of the catalog id that is being propagated to.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
CatalogEntityDeletedEvent
- Parameters:
source
- triggered the eventcatalogEntity
- deletedCatalogTrackable
entitycatalogId
- the catalog id of the deleted entity
-
CatalogEntityDeletedEvent
public CatalogEntityDeletedEvent(Object source, Trackable catalogEntity, String catalogId, @Nullable String applicationId) - Parameters:
source
- triggered the eventcatalogEntity
- deletedCatalogTrackable
entitycatalogId
- the catalog id of the deleted entityapplicationId
- the application id of the deleted entity, if applicable
-
-
Method Details
-
getCatalogEntity
TheCatalogTrackable
entity that was deleted. -
getCatalogId
The id of the catalog of the entity being deleted, or the id of the catalog id that is being propagated to. -
getApplicationId
The id of the application of the entity being deleted.
-