Class ApplicationPersistenceHandler
java.lang.Object
com.broadleafcommerce.adminuser.tenant.message.ApplicationPersistenceHandler
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.PersistenceHandler
public class ApplicationPersistenceHandler
extends Object
implements com.broadleafcommerce.common.messaging.PersistenceHandler
Handler for the
TenantSyncPersistenceConsumer
channel that specializes in replicating
persisted Application
domain
information into a subset of that information embodied in the Application
domain.- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.messaging.PersistenceHandler
log
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationPersistenceHandler
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationService<Application> applicationService) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapper
String[]
void
protected void
handleCreate
(com.fasterxml.jackson.databind.JsonNode entityJson, String id) protected void
handleReplace
(com.fasterxml.jackson.databind.JsonNode entityJson, String id, Application application) void
protected boolean
isDelete
(com.fasterxml.jackson.databind.JsonNode entityJson) boolean
isValidType
(String reportedType, String projectionType) protected void
populateApplication
(Application application, com.fasterxml.jackson.databind.JsonNode entityJson) 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
validate
-
Constructor Details
-
ApplicationPersistenceHandler
public ApplicationPersistenceHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationService<Application> applicationService)
-
-
Method Details
-
hook
- Specified by:
hook
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
handle
- Specified by:
handle
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
isValidType
- Specified by:
isValidType
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()- Specified by:
getObjectMapper
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
-
isDelete
protected boolean isDelete(com.fasterxml.jackson.databind.JsonNode entityJson) -
handleCreate
-
handleReplace
protected void handleReplace(com.fasterxml.jackson.databind.JsonNode entityJson, String id, Application application) -
populateApplication
protected void populateApplication(Application application, com.fasterxml.jackson.databind.JsonNode entityJson)
-