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.ObjectMapperString[]voidprotected voidhandleCreate(com.fasterxml.jackson.databind.JsonNode entityJson, String id) protected voidhandleReplace(com.fasterxml.jackson.databind.JsonNode entityJson, String id, Application application) voidprotected booleanisDelete(com.fasterxml.jackson.databind.JsonNode entityJson) booleanisValidType(String reportedType, String projectionType) protected voidpopulateApplication(Application application, com.fasterxml.jackson.databind.JsonNode entityJson) voidprocessStateChange(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
validate
-
Constructor Details
-
ApplicationPersistenceHandler
public ApplicationPersistenceHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationService<Application> applicationService)
-
-
Method Details
-
hook
- Specified by:
hookin interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
handle
- Specified by:
handlein interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
isValidType
- Specified by:
isValidTypein interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()- Specified by:
getObjectMapperin 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
-
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)
-