Class CartOperationServiceProperties.BulkAddToCartOperation
java.lang.Object
com.broadleafcommerce.cartoperation.service.CartOperationServiceProperties.BulkAddToCartOperation
- Enclosing class:
- CartOperationServiceProperties
Contains properties for bulk add to cart operations from the API.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Dictates the number of products that are gathered at a time when populating & validating a CartItem during an add to cart request.void
setProductBatchSize
(int productBatchSize) Dictates the number of products that are gathered at a time when populating & validating a CartItem during an add to cart request.
-
Constructor Details
-
BulkAddToCartOperation
public BulkAddToCartOperation()
-
-
Method Details
-
getProductBatchSize
public int getProductBatchSize()Dictates the number of products that are gathered at a time when populating & validating a CartItem during an add to cart request. When adding items to the cart, we must gather the relevant product(s) to validate that the request contains all required data. This property is used to determine how many products are gathered, based on the add item requests, but this does not necessarily have a direct correlation to the number of requests that are being processed for that batch of products. For example, if two add to cart requests are based on the same product, then the product only needs to be gathered once to process both requests. -
setProductBatchSize
public void setProductBatchSize(int productBatchSize) Dictates the number of products that are gathered at a time when populating & validating a CartItem during an add to cart request. When adding items to the cart, we must gather the relevant product(s) to validate that the request contains all required data. This property is used to determine how many products are gathered, based on the add item requests, but this does not necessarily have a direct correlation to the number of requests that are being processed for that batch of products. For example, if two add to cart requests are based on the same product, then the product only needs to be gathered once to process both requests.
-