Class CategoryPersistenceHandler

java.lang.Object
com.broadleafcommerce.catalog.messaging.CategoryPersistenceHandler
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.PersistenceHandler

public class CategoryPersistenceHandler extends Object implements com.broadleafcommerce.common.messaging.PersistenceHandler
Clear the Category ancestors cache in CategoryProductConsolidationContributor if a production change has been made to a category.
  • Constructor Details

    • CategoryPersistenceHandler

      public CategoryPersistenceHandler(CategoryProductConsolidationContributor categoryProductConsolidationContributor, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • hook

      @StreamListener("persistenceInputClearCacheCategory") public void hook(String entityJson)
      Specified by:
      hook in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • processStateChange

      public void processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson)
      Specified by:
      processStateChange in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • getSupportedSimpleTypeNames

      public String[] getSupportedSimpleTypeNames()
      Specified by:
      getSupportedSimpleTypeNames in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • getCategoryProductConsolidationContributor

      protected CategoryProductConsolidationContributor getCategoryProductConsolidationContributor()
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      Specified by:
      getObjectMapper in interface com.broadleafcommerce.common.messaging.PersistenceHandler