Class TenantPersistenceHandler
- java.lang.Object
-
- com.broadleafcommerce.search.index.core.messaging.handler.TenantPersistenceHandler
-
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.PersistenceHandler
public class TenantPersistenceHandler extends Object implements com.broadleafcommerce.common.messaging.PersistenceHandler
Clear the locale cache inIndexerTenantService
if a change has been made to a tenant.
-
-
Constructor Summary
Constructors Constructor Description TenantPersistenceHandler(IndexerTenantService tenantService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.ObjectMapper
getObjectMapper()
String[]
getSupportedSimpleTypeNames()
protected IndexerTenantService
getTenantService()
void
hook(String entityJson)
void
processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson)
-
-
-
Constructor Detail
-
TenantPersistenceHandler
public TenantPersistenceHandler(IndexerTenantService tenantService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
hook
@StreamListener("persistenceInputTenantSyncDataTracking") public void hook(String entityJson)
- 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
public String[] getSupportedSimpleTypeNames()
- Specified by:
getSupportedSimpleTypeNames
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getTenantService
protected IndexerTenantService getTenantService()
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
- Specified by:
getObjectMapper
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
-