- java.lang.Object
-
- de.hybris.platform.sap.sapordermgmtservices.converters.populator.DefaultAbstractOrderPopulator<SOURCE,TARGET>
-
- de.hybris.platform.sap.sapordermgmtservices.converters.populator.DefaultCartPopulator<SOURCE,TARGET>
-
- Type Parameters:
SOURCE- BOL representation of a cartTARGET- DAO representation of a cart
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class DefaultCartPopulator<SOURCE extends Basket,TARGET extends CartData> extends DefaultAbstractOrderPopulator<SOURCE,TARGET>
Populates a cart from the BOL representation to its DAO counterpart
-
-
Constructor Summary
Constructors Constructor Description DefaultCartPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpopulate(SOURCE source, TARGET target)Populate the target instance with values from the source instance.protected voidpopulateHeader(SOURCE source, TARGET target)Maps an abstract order header in BOL representation into an hybris abstract order-
Methods inherited from class de.hybris.platform.sap.sapordermgmtservices.converters.populator.DefaultAbstractOrderPopulator
convertDeliveryModeSAPToHybris, determineDeliveryModeSAPToHybris, getBaseSiteService, getBaseStoreService, getBolCartFacade, getCartItemConverter, getPriceFactory, getSapPartnerService, populateDeliveryAddress, setAddressConverter, setBaseSiteService, setBaseStoreService, setBolCartFacade, setCartItemConverter, setPriceFactory, setSapPartnerService
-
-
-
-
Method Detail
-
populate
public void populate(SOURCE source, TARGET target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<SOURCE extends Basket,TARGET extends CartData>- Overrides:
populatein classDefaultAbstractOrderPopulator<SOURCE extends Basket,TARGET extends CartData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
populateHeader
protected void populateHeader(SOURCE source, TARGET target)
Description copied from class:DefaultAbstractOrderPopulatorMaps an abstract order header in BOL representation into an hybris abstract order- Overrides:
populateHeaderin classDefaultAbstractOrderPopulator<SOURCE extends Basket,TARGET extends CartData>- Parameters:
source- BOL representation of abstract ordertarget- hybris representation of abstract order
-
-