Class InventoryVendorNotificationHandler
java.lang.Object
com.broadleafcommerce.inventory.service.messaging.vendor.InventoryVendorNotificationHandler
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.PersistenceHandler
@DataRouteByKey("inventory")
public class InventoryVendorNotificationHandler
extends Object
implements com.broadleafcommerce.common.messaging.PersistenceHandler
Event listener that listens for a VendorCreationEvent and is responsible for setting up a new
catalog for the vendor.
- Author:
- Jon Fleschler (jfleschler), Jeff Fischer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInventoryVendorNotificationHandler
(InventoryLocationService<InventoryLocation> inventoryLocationService, InventoryLocationRepository<com.broadleafcommerce.data.tracking.core.Trackable> inventoryLocationRepo, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager mapperManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected InventoryLocationRepository<com.broadleafcommerce.data.tracking.core.Trackable>
protected InventoryLocationService<InventoryLocation>
protected InventoryServiceProperties
protected com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager
com.fasterxml.jackson.databind.ObjectMapper
String[]
protected com.broadleafcommerce.common.extension.TypeFactory
protected Address
getVendorAddress
(com.fasterxml.jackson.databind.JsonNode entityJson) void
void
processStateChange
(com.fasterxml.jackson.databind.JsonNode entityJson) void
setInventoryProperties
(InventoryServiceProperties inventoryProperties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.common.messaging.PersistenceHandler
handle, isValidType, validate
-
Field Details
-
JPA_VENDOR_TYPE
- See Also:
-
-
Constructor Details
-
InventoryVendorNotificationHandler
public InventoryVendorNotificationHandler(InventoryLocationService<InventoryLocation> inventoryLocationService, InventoryLocationRepository<com.broadleafcommerce.data.tracking.core.Trackable> inventoryLocationRepo, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager mapperManager)
-
-
Method Details
-
hook
- Specified by:
hook
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
processStateChange
public void processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson) - Specified by:
processStateChange
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getVendorAddress
-
getSupportedSimpleTypeNames
- Specified by:
getSupportedSimpleTypeNames
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getInventoryLocationService
-
getInventoryLocationRepo
protected InventoryLocationRepository<com.broadleafcommerce.data.tracking.core.Trackable> getInventoryLocationRepo() -
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()- Specified by:
getObjectMapper
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getMapperManager
protected com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager getMapperManager() -
getInventoryProperties
-
setInventoryProperties
-