Class DefaultAbstractOrderEntryPopulator
- java.lang.Object
-
- de.hybris.platform.sap.sapordermgmtservices.converters.populator.DefaultAbstractOrderEntryPopulator
-
- All Implemented Interfaces:
Populator<Item,OrderEntryData>
public class DefaultAbstractOrderEntryPopulator extends java.lang.Object implements Populator<Item,OrderEntryData>
-
-
Constructor Summary
Constructors Constructor Description DefaultAbstractOrderEntryPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringformatProductIdForHybris(java.lang.String input)Formats product ID taken from backend catalog and prepares it for Hybris.PriceDataFactorygetPriceFactory()Converter<Schedline,ScheduleLineData>getScheduleLinesConverter()voidpopulate(Item item, OrderEntryData target)Populate the target instance with values from the source instance.voidsetPriceFactory(PriceDataFactory priceFactory)voidsetScheduleLinesConverter(Converter<Schedline,ScheduleLineData> scheduleLinesConverter)
-
-
-
Method Detail
-
populate
public void populate(Item item, OrderEntryData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<Item,OrderEntryData>- Parameters:
item- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getPriceFactory
public PriceDataFactory getPriceFactory()
- Returns:
- the priceFactory
-
setPriceFactory
public void setPriceFactory(PriceDataFactory priceFactory)
- Parameters:
priceFactory- the priceFactory to set
-
getScheduleLinesConverter
public Converter<Schedline,ScheduleLineData> getScheduleLinesConverter()
- Returns:
- the scheduleLinesConverter
-
setScheduleLinesConverter
public void setScheduleLinesConverter(Converter<Schedline,ScheduleLineData> scheduleLinesConverter)
- Parameters:
scheduleLinesConverter- the scheduleLinesConverter to set
-
formatProductIdForHybris
protected java.lang.String formatProductIdForHybris(java.lang.String input)
Formats product ID taken from backend catalog and prepares it for Hybris. Removes leading zeros.l- Parameters:
input-- Returns:
- Formatted product ID
-
-