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.-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.messaging.PersistenceHandler
log
-
Constructor Summary
ConstructorsConstructorDescriptionFieldPersistenceHandler
(IndexerSearchService<com.broadleafcommerce.search.api.domain.FieldDefinition> searchService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapper
protected IndexerSearchService<com.broadleafcommerce.search.api.domain.FieldDefinition>
String[]
void
void
processStateChange
(com.fasterxml.jackson.databind.JsonNode entityJson) 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
-
Constructor Details
-
FieldPersistenceHandler
public FieldPersistenceHandler(IndexerSearchService<com.broadleafcommerce.search.api.domain.FieldDefinition> searchService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
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
-
getSupportedSimpleTypeNames
- Specified by:
getSupportedSimpleTypeNames
in interfacecom.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 interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-