Class CatalogChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- com.broadleafcommerce.data.tracking.core.tenant.service.CatalogChangedEvent
-
- All Implemented Interfaces:
Serializable
public class CatalogChangedEvent extends org.springframework.context.ApplicationEvent
Published whenever a persisted representation of aCatalog
has changed- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CatalogChangedEvent(Object source, Trackable catalog, OperationType operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Trackable
getCatalog()
The catalog that was modifiedOperationType
getOperation()
The operation that triggered the change-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
CatalogChangedEvent
public CatalogChangedEvent(Object source, Trackable catalog, OperationType operation)
- Parameters:
source
- triggered the eventcatalog
- persisted counterpart to aCatalog
operation
- what type of operation was performed on the catalog
-
-
Method Detail
-
getCatalog
public Trackable getCatalog()
The catalog that was modified- Returns:
- persisted counterpart to
Catalog
-
getOperation
public OperationType getOperation()
The operation that triggered the change- Returns:
- operation that triggered the change
-
-