Class PPSAccessorHelper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​com.sap.ppengine.client.dto.ItemDomainSpecific> nextNonDiscountItem​(java.util.List<com.sap.ppengine.client.dto.LineItemDomainSpecific> lineItems, int startIndex)
      Look up next regular line item
      • Methods inherited from class com.sap.ppengine.client.util.impl.PPSClientBeanAccessorImpl

        getHelper, getObjectFactory, getPromotionPricingService
      • Methods inherited from class com.sap.ppengine.core.spring.impl.PPSContextAware

        getContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PPSAccessorHelper

        public PPSAccessorHelper()
    • Method Detail

      • nextNonDiscountItem

        public org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​com.sap.ppengine.client.dto.ItemDomainSpecific> nextNonDiscountItem​(java.util.List<com.sap.ppengine.client.dto.LineItemDomainSpecific> lineItems,
                                                                                                                                               int startIndex)
        Look up next regular line item
        Parameters:
        lineItems - all line items to consider
        startIndex - start index for searching
        Returns:
        corresponding line item and its position in the total list of items