Class DefaultSLFindPriceStrategy
- java.lang.Object
-
- de.hybris.platform.order.strategies.calculation.impl.servicelayer.DefaultSLFindPriceStrategy
-
- All Implemented Interfaces:
FindPriceStrategy,ServiceLayerOnlyCalculationVerifier
public class DefaultSLFindPriceStrategy extends java.lang.Object implements FindPriceStrategy
Default implementation of price resolver strategy (FindPriceStrategy, that resolves values for calculation.
-
-
Constructor Summary
Constructors Constructor Description DefaultSLFindPriceStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriceValuefindBasePrice(AbstractOrderEntryModel entry)Resolves price value for the givenAbstractOrderEntryModel.java.util.List<PriceInformation>getPriceInformation(BaseCriteria priceCriteria)Get prices informationPriceInformationfor given criteria.booleanisSLOnly()Implement this and return true if you are using only service-layer modelsvoidsetFindPriceValueInfoStrategy(FindPDTValueInfoStrategy<PriceValue,PriceInformation,PriceValueInfoCriteria> findPriceValueInfoStrategy)voidsetPdtCriteriaFactory(PDTCriteriaFactory pdtCriteriaFactory)
-
-
-
Method Detail
-
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
public PriceValue findBasePrice(AbstractOrderEntryModel entry) throws CalculationException
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 java.util.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
public void setPdtCriteriaFactory(PDTCriteriaFactory pdtCriteriaFactory)
-
setFindPriceValueInfoStrategy
public void setFindPriceValueInfoStrategy(FindPDTValueInfoStrategy<PriceValue,PriceInformation,PriceValueInfoCriteria> findPriceValueInfoStrategy)
-
-