Interface PriceInfoService

All Known Implementing Classes:
DefaultPriceInfoService

public interface PriceInfoService
This service provides access to pricing info for PriceContexts. This includes retrieving all PriceListRefs applicable to the price context as well as actual PriceInfos filtered by price list or context.
Author:
Nathan Moore (nathanmoore).
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<com.broadleafcommerce.pricing.client.domain.PriceInfo>
    retrievePriceInfosByPriceContext(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext)
    First retrieves the PriceListRefs for the PriceContext then retrieves the PriceInfo associated thereto.
    org.springframework.data.domain.Page<com.broadleafcommerce.pricing.client.domain.PriceInfo>
    retrievePriceInfosByPriceLists(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext)
    Retrieves PriceData for the provided PriceInfoContext.getPriceLists() and PriceInfoContext.getPriceableTargets(), then translates them into a list of PriceInfo.
  • Method Details

    • retrievePriceInfosByPriceLists

      org.springframework.data.domain.Page<com.broadleafcommerce.pricing.client.domain.PriceInfo> retrievePriceInfosByPriceLists(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext)
      Retrieves PriceData for the provided PriceInfoContext.getPriceLists() and PriceInfoContext.getPriceableTargets(), then translates them into a list of PriceInfo.
    • retrievePriceInfosByPriceContext

      org.springframework.data.domain.Page<com.broadleafcommerce.pricing.client.domain.PriceInfo> retrievePriceInfosByPriceContext(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext)

      First retrieves the PriceListRefs for the PriceContext then retrieves the PriceInfo associated thereto.

      Calls retrievePriceInfosByPriceLists(ContextInfo, PriceInfoContext)