Class DefaultPPSPromotionsService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.promotions.impl.AbstractPromotionsService
-
- de.hybris.platform.promotions.impl.DefaultPromotionsService
-
- com.sap.retail.sapppspricing.impl.DefaultPPSPromotionsService
-
- All Implemented Interfaces:
de.hybris.platform.promotions.PromotionsService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultPPSPromotionsService extends de.hybris.platform.promotions.impl.DefaultPromotionsServicePromotions service simply doing nothing in case PPS is set to active- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.promotions.impl.DefaultPromotionsService
ORDER_PROMOTIONS_QUERY, PRODUCT_PROMOTIONS_QUERY, PRODUCT_PROMOTIONS_QUERY_DESC, PRODUCT_PROMTIONS_QUERY_UNION, PROMOTION_GROUP_QUERY, PROMOTION_RESULTS_QUERY, SORTED_ORDER_AND_PRODUCT_PROMOTIONS_QUERY_CATEGORIES_PART, SORTED_ORDER_AND_PRODUCT_PROMOTIONS_QUERY_ORDER_PART, SORTED_ORDER_AND_PRODUCT_PROMOTIONS_QUERY_PRODUCTS_PART, SORTED_ORDER_AND_PRODUCT_PROMOTIONS_QUERY_START, SORTED_ORDER_AND_PRODUCT_PROMOTIONS_QUERY_UNION_ALL_PART
-
-
Constructor Summary
Constructors Constructor Description DefaultPPSPromotionsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PPSConfigServicegetConfigService()java.util.List<ProductPromotionModel>getProductPromotions(java.util.Collection<PromotionGroupModel> promotionGroups, ProductModel product, boolean evaluateRestrictions, java.util.Date date)Remove Hybris promotions from product detail page as SAP promotions are calculated in the PPSvoidsetConfigService(PPSConfigService configService)de.hybris.platform.promotions.result.PromotionOrderResultsupdatePromotions(java.util.Collection<PromotionGroupModel> promotionGroups, AbstractOrderModel order)SAP promotions are already calculated from backendde.hybris.platform.promotions.result.PromotionOrderResultsupdatePromotions(java.util.Collection<PromotionGroupModel> promotionGroups, AbstractOrderModel order, boolean evaluateRestrictions, de.hybris.platform.promotions.jalo.PromotionsManager.AutoApplyMode productPromotionMode, de.hybris.platform.promotions.jalo.PromotionsManager.AutoApplyMode orderPromotionMode, java.util.Date date)SAP promotions are already calculated from backend-
Methods inherited from class de.hybris.platform.promotions.impl.DefaultPromotionsService
autoApplyApplies, buildPromotionResultDataUniqueKey, buildQueryForDistinctProductPromotionQuery, checkLegacyMode, cleanupCart, deleteStoredPromotionResults, evaluatePromotion, filterPromotionsByRestrictions, findOrderAndProductPromotionsSortByPriority, fixupVouchersReapplyVouchers, fixupVouchersRemoveVouchers, getAbstractProductPromotions, getAbstractProductPromotions, getBaseProduct, getBaseProducts, getBaseProducts, getBaseProductsForOrder, getCalculationService, getDataUniqueKey, getDefaultPromotionGroup, getFlexibleSearchService, getLegacyModeChecker, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getProductPromotions, getPromotionDescription, getPromotionGroup, getPromotionResultDataUniqueKey, getPromotionResults, getPromotionResults, getPromotionResultsInternal, getPromotionResultTotalDiscount, getPromotionsManager, getRestrictions, getSession, getTotalDiscount, isDiscountAbsolute, isPromotionResultApplied, isPromotionResultFired, isPromotionResultValid, keepApplied, refreshOrder, saveIfModified, setCalculationService, setFlexibleSearchService, setLegacyModeChecker, sortByPromotionPriority, transferPromotionsToOrder, updateForActivePromotions, updatePromotionsInternal, updatePromotionsNotThreadSafe, usingPolyglotPersistence
-
Methods inherited from class de.hybris.platform.promotions.impl.AbstractPromotionsService
getCart, getOrder, getOrder, getProduct, getPromotion, getPromotion, getPromotion, getPromotionGroup, getResult, getSessionContext, refreshModifiedModelsAfter
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
-
-
-
Method Detail
-
updatePromotions
public de.hybris.platform.promotions.result.PromotionOrderResults updatePromotions(java.util.Collection<PromotionGroupModel> promotionGroups, AbstractOrderModel order)
SAP promotions are already calculated from backend- Specified by:
updatePromotionsin interfacede.hybris.platform.promotions.PromotionsService- Overrides:
updatePromotionsin classde.hybris.platform.promotions.impl.DefaultPromotionsService
-
updatePromotions
public de.hybris.platform.promotions.result.PromotionOrderResults updatePromotions(java.util.Collection<PromotionGroupModel> promotionGroups, AbstractOrderModel order, boolean evaluateRestrictions, de.hybris.platform.promotions.jalo.PromotionsManager.AutoApplyMode productPromotionMode, de.hybris.platform.promotions.jalo.PromotionsManager.AutoApplyMode orderPromotionMode, java.util.Date date)
SAP promotions are already calculated from backend- Specified by:
updatePromotionsin interfacede.hybris.platform.promotions.PromotionsService- Overrides:
updatePromotionsin classde.hybris.platform.promotions.impl.DefaultPromotionsService
-
getProductPromotions
public java.util.List<ProductPromotionModel> getProductPromotions(java.util.Collection<PromotionGroupModel> promotionGroups, ProductModel product, boolean evaluateRestrictions, java.util.Date date)
Remove Hybris promotions from product detail page as SAP promotions are calculated in the PPS- Specified by:
getProductPromotionsin interfacede.hybris.platform.promotions.PromotionsService- Overrides:
getProductPromotionsin classde.hybris.platform.promotions.impl.DefaultPromotionsService
-
getConfigService
public PPSConfigService getConfigService()
-
setConfigService
public void setConfigService(PPSConfigService configService)
-
-