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
ASingleIndexRequestMessageBuilder
specifically forJpaCustomer
.This is meant to be used when there is a change to a customer itself.
- Author:
- Samarth Dhruva (samarthd)
-
-
Constructor Summary
Constructors Constructor Description JpaCustomerSingleIndexRequestMessageBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.broadleafcommerce.data.tracking.core.messaging.search.domain.SingleIndexRequest<com.broadleafcommerce.data.tracking.core.Identifiable>
build(com.broadleafcommerce.data.tracking.core.search.Indexable entity)
protected CustomerSingleIndexRequestPayload
buildPayload(JpaCustomer entity)
boolean
canBuild(@NonNull com.broadleafcommerce.data.tracking.core.search.Indexable entity)
String
getDataRoutePartition()
protected boolean
isCustomer(Object entity)
-
-
-
Method Detail
-
canBuild
public boolean canBuild(@NonNull @NonNull com.broadleafcommerce.data.tracking.core.search.Indexable entity)
- Specified by:
canBuild
in interfacecom.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 interfacecom.broadleafcommerce.data.tracking.core.messaging.search.SingleIndexRequestMessageBuilder
-
buildPayload
protected CustomerSingleIndexRequestPayload buildPayload(JpaCustomer entity)
-
getDataRoutePartition
public String getDataRoutePartition()
- Specified by:
getDataRoutePartition
in interfacecom.broadleafcommerce.common.extension.data.DataRoutePartitionAware
-
-