Interface PriceListFilterService
- All Known Implementing Classes:
DefaultPriceListFilterService
public interface PriceListFilterService
Service for retrieving filtered price lists based on context.
- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptiongetFilteredPriceLists
(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, PriceListService<P> priceListService) Filters all price lists by type and combines the results into single listprioritizePriceLists
(List<P> priceLists) Sorts the price lists by priority in ascending order, then returns all those with the highest priority.
-
Method Details
-
getFilteredPriceLists
<P extends PriceList> List<P> getFilteredPriceLists(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, PriceListService<P> priceListService) Filters all price lists by type and combines the results into single list- Parameters:
priceContext
- The price context with which to filter matching price listscontextInfo
- The context info with which to determine price lists that may apply- Returns:
- The list of filtered price lists that apply
-
prioritizePriceLists
Sorts the price lists by priority in ascending order, then returns all those with the highest priority.- Parameters:
priceLists
- The price lists to sort- Returns:
- The sorted price lists
-