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
  • Constructor Details

    • ApplicationPersistenceHandler

      public ApplicationPersistenceHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationService<Application> applicationService)
  • Method Details

    • hook

      @StreamListener("persistenceInputTenantSyncAdminUser") public void hook(String entityJson)
      Specified by:
      hook in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • handle

      public void handle(String entityJson)
      Specified by:
      handle in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • isValidType

      public boolean isValidType(String reportedType, @Nullable String projectionType)
      Specified by:
      isValidType in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      Specified by:
      getObjectMapper in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • processStateChange

      public void processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson)
      Specified by:
      processStateChange in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • getSupportedSimpleTypeNames

      public String[] getSupportedSimpleTypeNames()
      Specified by:
      getSupportedSimpleTypeNames in interface com.broadleafcommerce.common.messaging.PersistenceHandler
    • isDelete

      protected boolean isDelete(com.fasterxml.jackson.databind.JsonNode entityJson)
    • handleCreate

      protected void handleCreate(com.fasterxml.jackson.databind.JsonNode entityJson, String id)
    • 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)