Class GroupOrderEntryPopulator
- java.lang.Object
-
- de.hybris.platform.b2bacceleratorfacades.order.converters.populator.GroupOrderEntryPopulator
-
- All Implemented Interfaces:
Populator<AbstractOrderModel,AbstractOrderData>
@Deprecated(since="5.5") public class GroupOrderEntryPopulator extends java.lang.Object implements Populator<AbstractOrderModel,AbstractOrderData>
Deprecated.Since 5.5. UseGroupOrderEntryPopulatorinstead.Groups multipleOrderEntryDataas one entry in aAbstractOrderDatabased on the multidimensional variants that share the same base product. All non multidimensional product entries will be leaved unmodified as a single entry.
-
-
Field Summary
Fields Modifier and Type Field Description static intINVALID_ENTRY_NUMBERDeprecated.static java.lang.StringVARIANT_TYPEDeprecated.static longZERO_QUANTITYDeprecated.
-
Constructor Summary
Constructors Constructor Description GroupOrderEntryPopulator()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected PriceDatabuildPrice(PriceData base, long amount)Deprecated.protected voidconsolidateGroupedOrderEntry(java.util.Map<java.lang.String,OrderEntryData> group)Deprecated.protected ProductDatacreateBaseProduct(ProductData variant)Deprecated.protected OrderEntryDatacreateGroupedOrderEntry(OrderEntryData firstEntry)Deprecated.protected PriceDatagetMaxPrice(OrderEntryData parentEntry, PriceData samplePrice)Deprecated.protected PriceDatagetMinPrice(OrderEntryData parentEntry, PriceData samplePrice)Deprecated.protected PriceDataFactorygetPriceDataFactory()Deprecated.protected ProductServicegetProductService()Deprecated.protected PriceDatagetTotalPrice(OrderEntryData parentEntry, PriceData samplePrice)Deprecated.protected longgetTotalQuantity(OrderEntryData parentEntry)Deprecated.protected java.util.List<OrderEntryData>groupEntries(java.util.List<OrderEntryData> entries)Deprecated.protected booleanisGroupable(ProductData product)Deprecated.protected booleanisNotEmptyPrice(PriceData price)Deprecated.voidpopulate(AbstractOrderModel source, AbstractOrderData target)Deprecated.Populate the target instance with values from the source instance.voidsetPriceDataFactory(PriceDataFactory priceDataFactory)Deprecated.voidsetProductService(ProductService productService)Deprecated.
-
-
-
Field Detail
-
VARIANT_TYPE
public static final java.lang.String VARIANT_TYPE
Deprecated.- See Also:
- Constant Field Values
-
INVALID_ENTRY_NUMBER
public static final int INVALID_ENTRY_NUMBER
Deprecated.- See Also:
- Constant Field Values
-
ZERO_QUANTITY
public static final long ZERO_QUANTITY
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
populate
public void populate(AbstractOrderModel source, AbstractOrderData target) throws ConversionException
Deprecated.Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AbstractOrderModel,AbstractOrderData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
groupEntries
protected java.util.List<OrderEntryData> groupEntries(java.util.List<OrderEntryData> entries)
Deprecated.
-
isGroupable
protected boolean isGroupable(ProductData product)
Deprecated.
-
consolidateGroupedOrderEntry
protected void consolidateGroupedOrderEntry(java.util.Map<java.lang.String,OrderEntryData> group)
Deprecated.
-
getMaxPrice
protected PriceData getMaxPrice(OrderEntryData parentEntry, PriceData samplePrice)
Deprecated.
-
getMinPrice
protected PriceData getMinPrice(OrderEntryData parentEntry, PriceData samplePrice)
Deprecated.
-
isNotEmptyPrice
protected boolean isNotEmptyPrice(PriceData price)
Deprecated.
-
getTotalPrice
protected PriceData getTotalPrice(OrderEntryData parentEntry, PriceData samplePrice)
Deprecated.
-
getTotalQuantity
protected long getTotalQuantity(OrderEntryData parentEntry)
Deprecated.
-
createGroupedOrderEntry
protected OrderEntryData createGroupedOrderEntry(OrderEntryData firstEntry)
Deprecated.
-
createBaseProduct
protected ProductData createBaseProduct(ProductData variant)
Deprecated.
-
getProductService
protected ProductService getProductService()
Deprecated.
-
setProductService
public void setProductService(ProductService productService)
Deprecated.
-
getPriceDataFactory
protected PriceDataFactory getPriceDataFactory()
Deprecated.
-
setPriceDataFactory
public void setPriceDataFactory(PriceDataFactory priceDataFactory)
Deprecated.
-
-