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.ObjectMapperprotected IndexerSearchService<com.broadleafcommerce.search.api.domain.FieldDefinition>String[]voidvoidprocessStateChange(com.fasterxml.jackson.databind.JsonNode entityJson) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
hookin interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
processStateChange
public void processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson) - Specified by:
processStateChangein interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getSupportedSimpleTypeNames
- Specified by:
getSupportedSimpleTypeNamesin 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:
getObjectMapperin interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-