java.lang.Object
de.hybris.platform.b2bacceleratorfacades.order.converters.populator.GroupOrderEntryPopulator
All Implemented Interfaces:
Populator<AbstractOrderModel,AbstractOrderData>

@Deprecated(since="5.5", forRemoval=true) public class GroupOrderEntryPopulator extends Object implements Populator<AbstractOrderModel,AbstractOrderData>
Deprecated, for removal: This API element is subject to removal in a future version.
Since 5.5. Use GroupOrderEntryPopulator instead.
Groups multiple OrderEntryData as one entry in a AbstractOrderData based on the multidimensional variants that share the same base product. All non multidimensional product entries will be leaved unmodified as a single entry.
  • Field Details

    • VARIANT_TYPE

      public static final String VARIANT_TYPE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • INVALID_ENTRY_NUMBER

      public static final int INVALID_ENTRY_NUMBER
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • ZERO_QUANTITY

      public static final long ZERO_QUANTITY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • GroupOrderEntryPopulator

      public GroupOrderEntryPopulator()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • populate

      public void populate(AbstractOrderModel source, AbstractOrderData target) throws ConversionException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Populator
      Populate the target instance with values from the source instance.
      Specified by:
      populate in interface Populator<AbstractOrderModel,AbstractOrderData>
      Parameters:
      source - the source object
      target - the target to fill
      Throws:
      ConversionException - if an error occurs
    • groupEntries

      protected List<OrderEntryData> groupEntries(List<OrderEntryData> entries)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isGroupable

      protected boolean isGroupable(ProductData product)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • consolidateGroupedOrderEntry

      protected void consolidateGroupedOrderEntry(Map<String,OrderEntryData> group)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMaxPrice

      protected PriceData getMaxPrice(OrderEntryData parentEntry, PriceData samplePrice)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMinPrice

      protected PriceData getMinPrice(OrderEntryData parentEntry, PriceData samplePrice)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isNotEmptyPrice

      protected boolean isNotEmptyPrice(PriceData price)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTotalPrice

      protected PriceData getTotalPrice(OrderEntryData parentEntry, PriceData samplePrice)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTotalQuantity

      protected long getTotalQuantity(OrderEntryData parentEntry)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createGroupedOrderEntry

      protected OrderEntryData createGroupedOrderEntry(OrderEntryData firstEntry)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createBaseProduct

      protected ProductData createBaseProduct(ProductData variant)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • buildPrice

      protected PriceData buildPrice(PriceData base, long amount)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getProductService

      protected ProductService getProductService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setProductService

      public void setProductService(ProductService productService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPriceDataFactory

      protected PriceDataFactory getPriceDataFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPriceDataFactory

      public void setPriceDataFactory(PriceDataFactory priceDataFactory)
      Deprecated, for removal: This API element is subject to removal in a future version.