Class CommerceCartParameterBasicPopulator
- java.lang.Object
-
- de.hybris.platform.commercefacades.order.converters.populator.CommerceCartParameterBasicPopulator
-
- All Implemented Interfaces:
Populator<AddToCartParams,CommerceCartParameter>
public class CommerceCartParameterBasicPopulator extends java.lang.Object implements Populator<AddToCartParams,CommerceCartParameter>
Populates common data of add-to-cart creation to pass it from facade to service layer.
-
-
Constructor Summary
Constructors Constructor Description CommerceCartParameterBasicPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CartServicegetCartService()protected PointOfServiceServicegetPointOfServiceService()protected ProductServicegetProductService()voidpopulate(AddToCartParams addToCartParams, CommerceCartParameter parameter)Populate the target instance with values from the source instance.voidsetCartService(CartService cartService)voidsetPointOfServiceService(PointOfServiceService pointOfServiceService)voidsetProductService(ProductService productService)
-
-
-
Method Detail
-
populate
public void populate(AddToCartParams addToCartParams, CommerceCartParameter parameter) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AddToCartParams,CommerceCartParameter>- Parameters:
addToCartParams- the source objectparameter- the target to fill- Throws:
ConversionException- if an error occurs
-
getCartService
protected CartService getCartService()
-
setCartService
public void setCartService(CartService cartService)
-
getProductService
protected ProductService getProductService()
-
setProductService
public void setProductService(ProductService productService)
-
getPointOfServiceService
protected PointOfServiceService getPointOfServiceService()
-
setPointOfServiceService
public void setPointOfServiceService(PointOfServiceService pointOfServiceService)
-
-