Class DefaultOrderGridFormFacade
java.lang.Object
de.hybris.platform.acceleratorfacades.ordergridform.impl.DefaultOrderGridFormFacade
- All Implemented Interfaces:
OrderGridFormFacade
Default implementation of
OrderGridFormFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetReadOnlyOrderGrid(List<OrderEntryData> orderEntryDataList) Populates the readonly order gridgetReadOnlyOrderGridForProductInOrder(String productCode, Collection<ProductOption> productOptions, AbstractOrderData abstractOrderData) Populates the read-only order grid for the specified multi-d product, the collection of product options, and if the product is contained in the entries of the specified AbstractOrder.protected Optional<ReadOnlyOrderGridData>groupOrderEntriesWithCategory(String hashKey, OrderEntryData dimensionEntry, LeafDimensionData leafDimensionData, Map<String, String> dimensionHeaderMap, Map<String, ReadOnlyOrderGridData> readOnlyMultiDMap) protected ReadOnlyOrderGridDatapopulateAndSortReadonlyOrderGridData(OrderEntryData dimensionEntry, LeafDimensionData leafDimensionData, Map<String, String> dimensionHeaderMap) populateDataFor1DGrid(CategoryData categoryData, OrderEntryData dimensionEntry) protected Set<LeafDimensionData>populateLeafDimensionData(LeafDimensionData leafDimensionData) protected voidpopulateLeafDimensionData(CategoryData categoryData, OrderEntryData dimensionEntry, LeafDimensionData leafDimensionData) populateReadonlyGridMapFromCategories(OrderEntryData dimensionEntry, Collection<CategoryData> categoryDataCollection, Map<String, ReadOnlyOrderGridData> readOnlyOrderGridDataMap)
-
Constructor Details
-
DefaultOrderGridFormFacade
public DefaultOrderGridFormFacade()
-
-
Method Details
-
getReadOnlyOrderGrid
public Map<String,ReadOnlyOrderGridData> getReadOnlyOrderGrid(List<OrderEntryData> orderEntryDataList) Description copied from interface:OrderGridFormFacadePopulates the readonly order grid- Specified by:
getReadOnlyOrderGridin interfaceOrderGridFormFacade- Parameters:
orderEntryDataList- list containing order entry data- Returns:
- map containing grouped ReadOnlyOrderGridDatas based on the category
-
getReadOnlyOrderGridForProductInOrder
public Map<String,ReadOnlyOrderGridData> getReadOnlyOrderGridForProductInOrder(String productCode, Collection<ProductOption> productOptions, AbstractOrderData abstractOrderData) Description copied from interface:OrderGridFormFacadePopulates the read-only order grid for the specified multi-d product, the collection of product options, and if the product is contained in the entries of the specified AbstractOrder.- Specified by:
getReadOnlyOrderGridForProductInOrderin interfaceOrderGridFormFacade- Parameters:
productCode- the product code for the specified multi-d product.productOptions- a collection of ProductOption used to retrieve the product.abstractOrderData- order object to check if specified product is in the order entries.- Returns:
- map containing grouped ReadOnlyOrderGridDatas based on the category
-
populateReadonlyGridMapFromCategories
protected Optional<AbstractMap.SimpleImmutableEntry<String,ReadOnlyOrderGridData>> populateReadonlyGridMapFromCategories(OrderEntryData dimensionEntry, Collection<CategoryData> categoryDataCollection, Map<String, ReadOnlyOrderGridData> readOnlyOrderGridDataMap) -
groupOrderEntriesWithCategory
protected Optional<ReadOnlyOrderGridData> groupOrderEntriesWithCategory(String hashKey, OrderEntryData dimensionEntry, LeafDimensionData leafDimensionData, Map<String, String> dimensionHeaderMap, Map<String, ReadOnlyOrderGridData> readOnlyMultiDMap) -
populateAndSortReadonlyOrderGridData
protected ReadOnlyOrderGridData populateAndSortReadonlyOrderGridData(OrderEntryData dimensionEntry, LeafDimensionData leafDimensionData, Map<String, String> dimensionHeaderMap) -
populateLeafDimensionData
-
populateDataFor1DGrid
protected Optional<AbstractMap.SimpleImmutableEntry<String,ReadOnlyOrderGridData>> populateDataFor1DGrid(CategoryData categoryData, OrderEntryData dimensionEntry) -
populateLeafDimensionData
protected void populateLeafDimensionData(CategoryData categoryData, OrderEntryData dimensionEntry, LeafDimensionData leafDimensionData)
-