Class GroupVendorOrderEntryPopulator<S extends AbstractOrderModel,T extends AbstractOrderData>
- java.lang.Object
-
- de.hybris.platform.marketplacefacades.cart.converters.populator.GroupVendorOrderEntryPopulator<S,T>
-
- All Implemented Interfaces:
Populator<S,T>
public class GroupVendorOrderEntryPopulator<S extends AbstractOrderModel,T extends AbstractOrderData> extends java.lang.Object implements Populator<S,T>
Groups multipleOrderEntryDataas one entry in aAbstractOrderDatabased on the vendor of the product. A root Vendor Group will be appended to current root groups of vendor, then all vendor groups be added to that root Group
-
-
Constructor Summary
Constructors Constructor Description GroupVendorOrderEntryPopulator()
-
Method Summary
-
-
-
Method Detail
-
populate
public void populate(AbstractOrderModel source, AbstractOrderData target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<S extends AbstractOrderModel,T extends AbstractOrderData>- Parameters:
source- the source objecttarget- the target to fill
-
groupVendorEntries
protected java.util.List<OrderEntryData> groupVendorEntries(AbstractOrderData order)
-
addToCurrentRootGroups
protected void addToCurrentRootGroups(AbstractOrderData order, EntryGroupData vendorRootGroup)
-
addEntryToGroup
protected void addEntryToGroup(OrderEntryData entry, java.util.Map<java.lang.String,EntryGroupData> vendorGroups)
-
getVendorGroup
protected EntryGroupData getVendorGroup(OrderEntryData entry, java.util.Map<java.lang.String,EntryGroupData> vendorGroups)
-
getVendorRootGroup
protected EntryGroupData getVendorRootGroup(java.util.Map<java.lang.String,EntryGroupData> vendorGroups)
-
getCurrentNestedGroups
@Nonnull protected java.util.List<EntryGroupData> getCurrentNestedGroups(@Nonnull EntryGroupData root)
-
findCurrentMaxGroupNumber
protected int findCurrentMaxGroupNumber(java.util.List<EntryGroupData> roots)
-
getVendorOriginalEntryGroupDisplayStrategy
protected VendorOriginalEntryGroupDisplayStrategy getVendorOriginalEntryGroupDisplayStrategy()
-
setVendorOriginalEntryGroupDisplayStrategy
public void setVendorOriginalEntryGroupDisplayStrategy(VendorOriginalEntryGroupDisplayStrategy vendorOriginalEntryGroupDisplayStrategy)
-
-