Class FieldPersistenceHandler

java.lang.Object
com.broadleafcommerce.search.index.core.messaging.handler.FieldPersistenceHandler
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.PersistenceHandler

public class FieldPersistenceHandler extends Object implements com.broadleafcommerce.common.messaging.PersistenceHandler
Clear the FieldDefinition cache in IndexerSearchService if a production change has been made to a field definition.
  • Constructor Details

    • FieldPersistenceHandler

      public FieldPersistenceHandler(IndexerSearchService<com.broadleafcommerce.search.api.domain.FieldDefinition> searchService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • hook

      @StreamListener("persistenceInputField") 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
    • getSearchService

      protected IndexerSearchService<com.broadleafcommerce.search.api.domain.FieldDefinition> getSearchService()
    • getObjectMapper

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