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 TypeMethodDescriptionorg.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 thePriceListRefs
for thePriceContext
then retrieves thePriceInfo
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) RetrievesPriceData
for the providedPriceInfoContext.getPriceLists()
andPriceInfoContext.getPriceableTargets()
, then translates them into a list ofPriceInfo
.
-
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) RetrievesPriceData
for the providedPriceInfoContext.getPriceLists()
andPriceInfoContext.getPriceableTargets()
, then translates them into a list ofPriceInfo
. -
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 thePriceContext
then retrieves thePriceInfo
associated thereto.Calls
retrievePriceInfosByPriceLists(ContextInfo, PriceInfoContext)
-