Class PriceSortingServiceImpl
java.lang.Object
ch.tocco.nice2.optional.order.impl.service.PriceSortingServiceImpl
- All Implemented Interfaces:
PriceSortingService
-
Constructor Summary
ConstructorDescriptionPriceSortingServiceImpl
(CurrentArticlePriceService articlePriceService, CommandExecutor executor, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
updatePriceSortingForArticles
(EntityList articles) sets the price_sorting field on several Article entities based on their current default pricevoid
updatePriceSortingForPrice
(Entity articlePrice) sets the price_sorting field on the Article of a Article_price entity, if it is a default price and is newer than the default price
-
Constructor Details
-
PriceSortingServiceImpl
public PriceSortingServiceImpl(CurrentArticlePriceService articlePriceService, CommandExecutor executor, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
updatePriceSortingForArticles
Description copied from interface:PriceSortingService
sets the price_sorting field on several Article entities based on their current default price- Specified by:
updatePriceSortingForArticles
in interfacePriceSortingService
- Parameters:
articles
- list of articles to set
-
updatePriceSortingForPrice
Description copied from interface:PriceSortingService
sets the price_sorting field on the Article of a Article_price entity, if it is a default price and is newer than the default price- Specified by:
updatePriceSortingForPrice
in interfacePriceSortingService
- Parameters:
articlePrice
- the Article_price to get the Article from and set the price_sorting to
-