Class DefaultStockChangeNotificationService

    • Constructor Detail

      • DefaultStockChangeNotificationService

        public DefaultStockChangeNotificationService​(SkuInventorySummaryService<?> skuInventorySummaryService,
                                                     StockAvailabilityChangeNotifcationProducer stockAvailabilityChangeNotifcationProducer,
                                                     com.broadleafcommerce.common.extension.TypeFactory typeFactory,
                                                     com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • notifyOfStockChange

        public void notifyOfStockChange​(@NonNull
                                        String skuCode,
                                        int previousQuantityAvailable,
                                        int newQuantityAvailable,
                                        @Nullable
                                        com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Description copied from interface: StockChangeNotificationService
        API to notify, typically via an asynchronous message, that stock has become available or unavailable for a tenant or application.
        Specified by:
        notifyOfStockChange in interface StockChangeNotificationService
      • getTypeFactory

        protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
      • getObjectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()