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 Object
implements Populator<S,T>
Groups multiple
OrderEntryData as one entry in a AbstractOrderData based 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEntryToGroup(OrderEntryData entry, Map<String, EntryGroupData> vendorGroups) protected voidaddToCurrentRootGroups(AbstractOrderData order, EntryGroupData vendorRootGroup) protected intprotected List<EntryGroupData>protected EntryGroupDatagetVendorGroup(OrderEntryData entry, Map<String, EntryGroupData> vendorGroups) protected VendorOriginalEntryGroupDisplayStrategyprotected EntryGroupDatagetVendorRootGroup(Map<String, EntryGroupData> vendorGroups) protected List<OrderEntryData>voidpopulate(AbstractOrderModel source, AbstractOrderData target) Populate the target instance with values from the source instance.voidsetVendorOriginalEntryGroupDisplayStrategy(VendorOriginalEntryGroupDisplayStrategy vendorOriginalEntryGroupDisplayStrategy)
-
Constructor Details
-
GroupVendorOrderEntryPopulator
public GroupVendorOrderEntryPopulator()
-
-
Method Details
-
populate
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
-
addToCurrentRootGroups
-
addEntryToGroup
-
getVendorGroup
protected EntryGroupData getVendorGroup(OrderEntryData entry, Map<String, EntryGroupData> vendorGroups) -
getVendorRootGroup
-
getCurrentNestedGroups
-
findCurrentMaxGroupNumber
-
getVendorOriginalEntryGroupDisplayStrategy
-
setVendorOriginalEntryGroupDisplayStrategy
public void setVendorOriginalEntryGroupDisplayStrategy(VendorOriginalEntryGroupDisplayStrategy vendorOriginalEntryGroupDisplayStrategy)
-