Class 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 Detail

      • JpaCustomerSingleIndexRequestMessageBuilder

        public JpaCustomerSingleIndexRequestMessageBuilder()
    • Method Detail

      • 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
      • getDataRoutePartition

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