public class DefaultPriceService extends AbstractBusinessService implements PriceService
PriceService.AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultPriceService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied.
|
ProductPriceInformations |
getAllPriceInformation(PriceCriteria priceCriteria)
Returns
ProductPriceInformations product price containing all applicable prices, discounts and taxes for the
given criteria (product and net/gross state) |
java.util.List<PriceInformation> |
getPriceInformations(PriceCriteria priceCriteria)
Calculates all applicable prices for given criteria.
|
java.util.List<PriceInformation> |
getPriceInformationsForProduct(ProductModel product)
Returns all available
PriceInformation for the given ProductModel and the current session user. |
void |
setApplicationContext(ApplicationContext ctx) |
void |
setFindDiscountValuesStrategy(FindDiscountValuesStrategy findDiscountValuesStrategy) |
void |
setFindPriceStrategy(FindPriceStrategy findPriceStrategy) |
void |
setFindTaxValuesStrategy(FindTaxValuesStrategy findTaxValuesStrategy) |
void |
setTimeService(TimeService timeService) |
void |
setUserNetCheckingStrategy(UserNetCheckingStrategy userNetCheckingStrategy) |
void |
setUserService(UserService userService) |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagergetCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic java.util.List<PriceInformation> getPriceInformationsForProduct(ProductModel product)
PriceServicePriceInformation for the given ProductModel and the current session user.getPriceInformationsForProduct in interface PriceServiceproduct - the productpublic java.util.List<PriceInformation> getPriceInformations(PriceCriteria priceCriteria)
PriceServicegetPriceInformations in interface PriceServicepriceCriteria - PriceCriteriaPriceInformationpublic ProductPriceInformations getAllPriceInformation(PriceCriteria priceCriteria)
PriceServiceProductPriceInformations product price containing all applicable prices, discounts and taxes for the
given criteria (product and net/gross state)
This default implementation just calls FindPriceStrategy.getPriceInformation(BaseCriteria),
FindTaxValuesStrategy.getTaxInformation(BaseCriteria) and
FindDiscountValuesStrategy.getDiscountInformation(BaseCriteria ) and wraps the results inside a
ProductPriceInformations object.
getAllPriceInformation in interface PriceServicepriceCriteria - PriceCriteriaProductPriceInformations that contains prices,discount, taxes for given priceCriteriapublic void setTimeService(TimeService timeService)
public void setUserService(UserService userService)
public void setFindPriceStrategy(FindPriceStrategy findPriceStrategy)
public void setFindTaxValuesStrategy(FindTaxValuesStrategy findTaxValuesStrategy)
public void setUserNetCheckingStrategy(UserNetCheckingStrategy userNetCheckingStrategy)
public void setFindDiscountValuesStrategy(FindDiscountValuesStrategy findDiscountValuesStrategy)
public void setApplicationContext(ApplicationContext ctx)
public void afterPropertiesSet()
throws java.lang.Exception
AbstractServicesuper.afterPropertiesSet() before or the java serialization won't work.afterPropertiesSet in class AbstractServicejava.lang.ExceptionInitializingBean#afterPropertiesSet()Copyright © 2018 SAP SE. All Rights Reserved.