Class DefaultSavedCartFileUploadStrategy
java.lang.Object
de.hybris.platform.acceleratorservices.process.strategies.impl.DefaultSavedCartFileUploadStrategy
- All Implemented Interfaces:
SavedCartFileUploadStrategy
public class DefaultSavedCartFileUploadStrategy
extends Object
implements SavedCartFileUploadStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommerceCartModificationaddLinesToCart(String[] cartAttributes, CartModel cartModel) protected CommerceCartParametercreateCommerceCartParam(String code, long quantity, CartModel cartModel) protected CommerceCartParametercreateSavedCartFromFile(MediaModel mediaModel, CartModel cartModel) protected CommerceCartServiceprotected Stringprotected MediaServiceprotected ModelServiceprotected Longprotected Integerprotected ProductServiceprotected Integerprotected CommerceCartModificationvoidsetCommerceCartService(CommerceCartService commerceCartService) voidsetDelimiter(String delimiter) voidsetMediaService(MediaService mediaService) voidsetModelService(ModelService modelService) voidsetNumberOfLinesToSkip(Long numberOfLinesToSkip) voidsetProductCodeIndex(Integer productCodeIndex) voidsetProductService(ProductService productService) voidsetQtyIndex(Integer qtyIndex) protected voidwriteDebugLog(String message)
-
Constructor Details
-
DefaultSavedCartFileUploadStrategy
public DefaultSavedCartFileUploadStrategy()
-
-
Method Details
-
createSavedCartFromFile
public SavedCartFileUploadReportData createSavedCartFromFile(MediaModel mediaModel, CartModel cartModel) throws IOException - Specified by:
createSavedCartFromFilein interfaceSavedCartFileUploadStrategy- Throws:
IOException
-
addLinesToCart
protected CommerceCartModification addLinesToCart(String[] cartAttributes, CartModel cartModel) throws CommerceCartModificationException -
createCommerceCartParam
protected CommerceCartParameter createCommerceCartParam(String code, long quantity, CartModel cartModel) throws CommerceCartModificationException -
handleExceptionForImport
-
writeDebugLog
-
createCommerceCartParameter
-
getProductService
-
setProductService
-
getMediaService
-
setMediaService
-
getModelService
-
setModelService
-
getCommerceCartService
-
setCommerceCartService
-
getDelimiter
-
setDelimiter
-
getProductCodeIndex
-
setProductCodeIndex
-
getNumberOfLinesToSkip
-
setNumberOfLinesToSkip
-
getQtyIndex
-
setQtyIndex
-