Class MerchandiseHierarchyLineItemPopulator
java.lang.Object
com.sap.retail.sapppspricing.opps.PPSClientBeanAccessorImpl
com.sap.retail.sapppspricing.impl.DefaultPPSClientBeanAccessor
com.sap.retail.sapppspricing.impl.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
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CategoryModeldetermineBaseMaterialGroup(ProductModel product) protected List<CategoryModel>intgetOrder()protected booleanprotected booleanvoidpopulate(LineItemDomainSpecific lineItem, ProductModel product) voidsetHierarchyId(String hierarchyId) voidsetMerchGroupCatalogId(String merchGroupCatalogId) voidsetOrder(int order) Methods inherited from class com.sap.retail.sapppspricing.opps.PPSClientBeanAccessorImpl
getHelper, getObjectFactory, setHelper, setObjectFactory
-
Constructor Details
-
MerchandiseHierarchyLineItemPopulator
public MerchandiseHierarchyLineItemPopulator()
-
-
Method Details
-
populate
- Specified by:
populatein interfaceLineItemPopulator<ProductModel>- Parameters:
lineItem- line item to populate
-
determineBaseMaterialGroup
-
determineBaseMaterialGroupCandidates
-
isErpMerchCat
-
isSureErpMerchCat
- 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
-
setMerchGroupCatalogId
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
getHierarchyId
- Returns:
- the hierarchyId
-
setHierarchyId
- Parameters:
hierarchyId- the hierarchyId to set
-