Class MerchandiseHierarchyLineItemPopulator

All Implemented Interfaces:
LineItemPopulator<ProductModel>, PPSClientBeanAccessor, org.springframework.core.Ordered

public class MerchandiseHierarchyLineItemPopulator extends DefaultPPSClientBeanAccessor implements LineItemPopulator<ProductModel>
Line line item populator adding merchandise hierarchy information
  • Constructor Details

    • MerchandiseHierarchyLineItemPopulator

      public MerchandiseHierarchyLineItemPopulator()
  • Method Details

    • populate

      public void populate(LineItemDomainSpecific lineItem, ProductModel product)
      Specified by:
      populate in interface LineItemPopulator<ProductModel>
      Parameters:
      lineItem - line item to populate
    • determineBaseMaterialGroup

      protected CategoryModel determineBaseMaterialGroup(ProductModel product)
    • determineBaseMaterialGroupCandidates

      protected List<CategoryModel> determineBaseMaterialGroupCandidates(ProductModel product)
    • isErpMerchCat

      protected boolean isErpMerchCat(CategoryModel cat)
    • isSureErpMerchCat

      protected boolean isSureErpMerchCat(CategoryModel cat)
      Parameters:
      cat -
      Returns:
      true if category is a base merchandise category for sure. Does not consider the case that it has no parents. In that case the category might be a base MC or a characteristics profile! Then later on additional logic is needed.
    • getMerchGroupCatalogId

      public String getMerchGroupCatalogId()
    • setMerchGroupCatalogId

      public void setMerchGroupCatalogId(String merchGroupCatalogId)
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)
    • getHierarchyId

      public String getHierarchyId()
      Returns:
      the hierarchyId
    • setHierarchyId

      public void setHierarchyId(String hierarchyId)
      Parameters:
      hierarchyId - the hierarchyId to set