Class JpaCustomerSingleIndexRequestMessageBuilder

java.lang.Object
com.broadleafcommerce.customer.provider.jpa.messaging.search.JpaCustomerSingleIndexRequestMessageBuilder
All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware, com.broadleafcommerce.data.tracking.core.messaging.search.SingleIndexRequestMessageBuilder

public class JpaCustomerSingleIndexRequestMessageBuilder extends Object implements com.broadleafcommerce.data.tracking.core.messaging.search.SingleIndexRequestMessageBuilder
A SingleIndexRequestMessageBuilder specifically for JpaCustomer.

This is meant to be used when there is a change to a customer itself.

Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • JpaCustomerSingleIndexRequestMessageBuilder

      public JpaCustomerSingleIndexRequestMessageBuilder()
  • Method Details

    • canBuild

      public boolean canBuild(@NonNull @NonNull com.broadleafcommerce.data.tracking.core.search.Indexable entity)
      Specified by:
      canBuild in interface com.broadleafcommerce.data.tracking.core.messaging.search.SingleIndexRequestMessageBuilder
    • isCustomer

      protected boolean isCustomer(Object entity)
    • build

      public com.broadleafcommerce.data.tracking.core.messaging.search.domain.SingleIndexRequest<com.broadleafcommerce.data.tracking.core.Identifiable> build(com.broadleafcommerce.data.tracking.core.search.Indexable entity)
      Specified by:
      build in interface com.broadleafcommerce.data.tracking.core.messaging.search.SingleIndexRequestMessageBuilder
    • buildPayload

      protected CustomerSingleIndexRequestPayload buildPayload(JpaCustomer entity)
    • getDataRoutePartition

      public String getDataRoutePartition()
      Specified by:
      getDataRoutePartition in interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware