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)
-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
ALL_MATCH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.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) protected boolean
isCustomer
(Object entity)
-
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 interfacecom.broadleafcommerce.data.tracking.core.messaging.search.SingleIndexRequestMessageBuilder
-
isCustomer
-
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
-
getDataRoutePartition
- Specified by:
getDataRoutePartition
in interfacecom.broadleafcommerce.common.extension.data.DataRoutePartitionAware
-