Class DefaultSLFindPriceStrategy
java.lang.Object
de.hybris.platform.order.strategies.calculation.impl.servicelayer.DefaultSLFindPriceStrategy
- All Implemented Interfaces:
FindPriceStrategy,ServiceLayerOnlyCalculationVerifier
Default implementation of price resolver strategy (
FindPriceStrategy, that resolves values for calculation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves price value for the givenAbstractOrderEntryModel.protected List<FindPriceHook>protected PDTCriteriaFactorygetPriceInformation(BaseCriteria priceCriteria) Get prices informationPriceInformationfor given criteria.booleanisSLOnly()Implement this and return true if you are using only service-layer modelsvoidsetFindPriceHooks(List<FindPriceHook> findPriceHooks) voidsetFindPriceValueInfoStrategy(FindPDTValueInfoStrategy<PriceValue, PriceInformation, PriceValueInfoCriteria> findPriceValueInfoStrategy) voidsetPdtCriteriaFactory(PDTCriteriaFactory pdtCriteriaFactory)
-
Constructor Details
-
DefaultSLFindPriceStrategy
public DefaultSLFindPriceStrategy()
-
-
Method Details
-
isSLOnly
public boolean isSLOnly()Description copied from interface:ServiceLayerOnlyCalculationVerifierImplement this and return true if you are using only service-layer models- Specified by:
isSLOnlyin interfaceServiceLayerOnlyCalculationVerifier- Returns:
- true, if only service-layer models are used
-
findBasePrice
Description copied from interface:FindPriceStrategyResolves price value for the givenAbstractOrderEntryModel. Please refer toFindPricingWithCurrentPriceFactoryStrategy, which resolves the price according to the current price factory.- Specified by:
findBasePricein interfaceFindPriceStrategy- Parameters:
entry-AbstractOrderEntryModel- Returns:
PriceValue- Throws:
CalculationException
-
getPriceInformation
public List<PriceInformation> getPriceInformation(BaseCriteria priceCriteria) throws CalculationException Description copied from interface:FindPriceStrategyGet prices informationPriceInformationfor given criteria.- Specified by:
getPriceInformationin interfaceFindPriceStrategy- Parameters:
priceCriteria-BaseCriteria- Returns:
- the
Listof allPriceInformations which matching baseCriteria. If no matching prices were found, an empty collection is returned. - Throws:
CalculationException
-
setPdtCriteriaFactory
-
setFindPriceValueInfoStrategy
public void setFindPriceValueInfoStrategy(FindPDTValueInfoStrategy<PriceValue, PriceInformation, PriceValueInfoCriteria> findPriceValueInfoStrategy) -
setFindPriceHooks
-
getFindPriceHooks
-
getPdtCriteriaFactory
-