public static class CachingPromotionsManagerTest.MockCachingPromotionsManager extends CachingPromotionsManager
PromotionsManager.AutoApplyMode, PromotionsManager.RestrictionSetResultExtension.RestrictedLanguagesProvider, Extension.RightsProviderManager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreatorCACHING_ALLOWEDCATEGORYPROMOTIONRELATION_MARKMODIFIED, CATEGORYPROMOTIONRELATION_SRC_ORDERED, CATEGORYPROMOTIONRELATION_TGT_ORDERED, DEFAULT_INITIAL_ATTRIBUTES, ORDER2PROMOTIONRESULTSRELATIONALLPROMOTIONRESULTSHANDLER, PRODUCTPROMOTIONRELATION_MARKMODIFIED, PRODUCTPROMOTIONRELATION_SRC_ORDERED, PRODUCTPROMOTIONRELATION_TGT_ORDERED| Constructor and Description |
|---|
MockCachingPromotionsManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowCaching(java.lang.Boolean allowCaching) |
protected PromotionOrderResults |
doUpdatePromotionsOutOfCache(SessionContext ctx,
java.util.Collection<PromotionGroup> promotionGroups,
AbstractOrder order,
boolean evaluateRestrictions,
PromotionsManager.AutoApplyMode productPromotionMode,
PromotionsManager.AutoApplyMode orderPromotionMode,
java.util.Date date) |
protected JaloSession |
getCurrentJaloSession() |
JaloSession |
getJaloSession() |
protected java.util.List<PromotionResult> |
getNonCachedPromotionResultsInternal(SessionContext ctx,
AbstractOrder order) |
SessionContext |
getSessionContext() |
void |
setTenant(Tenant tenant) |
acceptWithCachingEnabled, applyWithCachingEnabled, cleanupCart, createPromotionNullAction, createPromotionOrderAddFreeGiftAction, createPromotionOrderAdjustTotalAction, createPromotionOrderChangeDeliveryModeAction, createPromotionOrderEntryAdjustAction, createPromotionOrderEntryAdjustAction, createPromotionOrderEntryAdjustAction, createPromotionOrderEntryConsumed, createPromotionOrderEntryConsumed, createPromotionResult, deleteStoredPromotionResults, doUpdatePromotions, getCache, getPromotionResults, getPromotionResultsInternal, isCachingAllowed, removeFromAllPromotionResults, setCache, setCachingAllowed, transferPromotionsToOrder, updatePromotions, updatePromotionsautoApplyApplies, buildQueryForDistinctProductPromotionQuery, cleanupCart, cleanupOrphanedResults, cleanupOrphanedResults, createEssentialData, createPromotionGroup, createPromotionPriceRow, createPromotionPriceRow, createPromotionQuantityAndPricesRow, evaluatePromotion, evaluateRestrictions, evaluateRestrictions, filterPromotionsByRestrictions, findOrderAndProductPromotionsSortByPriority, fixupVouchersReapplyVouchers, fixupVouchersRemoveVouchers, getBaseProductsForOrder, getComposedType, getDefaultPromotionGroup, getDefaultPromotionGroup, getInstance, getLanguageNeutralSessionContext, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getOrderPromotions, getProductPromotions, getProductPromotions, getProductPromotions, getPromotionGroup, getPromotionResults, getPromotionResults, initialiseDefaultLocalisedValues, initialiseDefaultLocalisedValues, keepApplied, makeActionGUID, notifyInitializationEnd, notifyInitializationStart, transferPromotionsToOrder, updatePromotions, updatePromotionsNotThreadSafeaddToAllPromotionResults, addToAllPromotionResults, addToPromotions, addToPromotions, addToPromotions, addToPromotions, createAbstractPromotionAction, createAbstractPromotionAction, createAbstractPromotionRestriction, createAbstractPromotionRestriction, createCachedPromotionNullAction, createCachedPromotionNullAction, createCachedPromotionOrderAddFreeGiftAction, createCachedPromotionOrderAddFreeGiftAction, createCachedPromotionOrderAdjustTotalAction, createCachedPromotionOrderAdjustTotalAction, createCachedPromotionOrderChangeDeliveryModeAction, createCachedPromotionOrderChangeDeliveryModeAction, createCachedPromotionOrderEntryAdjustAction, createCachedPromotionOrderEntryAdjustAction, createCachedPromotionOrderEntryConsumed, createCachedPromotionOrderEntryConsumed, createCachedPromotionResult, createCachedPromotionResult, createOrderPromotion, createOrderPromotion, createOrderThresholdChangeDeliveryModePromotion, createOrderThresholdChangeDeliveryModePromotion, createOrderThresholdDiscountPromotion, createOrderThresholdDiscountPromotion, createOrderThresholdFreeGiftPromotion, createOrderThresholdFreeGiftPromotion, createOrderThresholdFreeVoucherPromotion, createOrderThresholdFreeVoucherPromotion, createOrderThresholdPerfectPartnerPromotion, createOrderThresholdPerfectPartnerPromotion, createProductBOGOFPromotion, createProductBOGOFPromotion, createProductBundlePromotion, createProductBundlePromotion, createProductFixedPricePromotion, createProductFixedPricePromotion, createProductMultiBuyPromotion, createProductMultiBuyPromotion, createProductOneToOnePerfectPartnerPromotion, createProductOneToOnePerfectPartnerPromotion, createProductPercentageDiscountPromotion, createProductPercentageDiscountPromotion, createProductPerfectPartnerBundlePromotion, createProductPerfectPartnerBundlePromotion, createProductPerfectPartnerPromotion, createProductPerfectPartnerPromotion, createProductPromotion, createProductPromotion, createProductSteppedMultiBuyPromotion, createProductSteppedMultiBuyPromotion, createPromotionGroup, createPromotionGroup, createPromotionNullAction, createPromotionNullAction, createPromotionOrderAddFreeGiftAction, createPromotionOrderAddFreeGiftAction, createPromotionOrderAdjustTotalAction, createPromotionOrderAdjustTotalAction, createPromotionOrderChangeDeliveryModeAction, createPromotionOrderChangeDeliveryModeAction, createPromotionOrderEntryAdjustAction, createPromotionOrderEntryAdjustAction, createPromotionOrderEntryConsumed, createPromotionOrderEntryConsumed, createPromotionPriceRow, createPromotionPriceRow, createPromotionProductRestriction, createPromotionProductRestriction, createPromotionQuantityAndPricesRow, createPromotionQuantityAndPricesRow, createPromotionResult, createPromotionResult, createPromotionUserRestriction, createPromotionUserRestriction, getAllPromotionResults, getAllPromotionResults, getDefaultAttributeModes, getName, getPreviousDeliveryMode, getPreviousDeliveryMode, getPromotions, getPromotions, getPromotions, getPromotions, getPromotionsCount, getPromotionsCount, getPromotionsCount, getPromotionsCount, removeFromAllPromotionResults, removeFromPromotions, removeFromPromotions, removeFromPromotions, removeFromPromotions, setAllPromotionResults, setAllPromotionResults, setPreviousDeliveryMode, setPreviousDeliveryMode, setPromotions, setPromotions, setPromotions, setPromotionscheckBeforeItemRemoval, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, isCreatorDisabled, notifyItemRemoval, onFirstSessionCreation, writeReplaceafterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTransientObject, wrapprotected JaloSession getCurrentJaloSession()
getCurrentJaloSession in class CachingPromotionsManagerprotected java.util.List<PromotionResult> getNonCachedPromotionResultsInternal(SessionContext ctx, AbstractOrder order)
getNonCachedPromotionResultsInternal in class CachingPromotionsManagerprotected PromotionOrderResults doUpdatePromotionsOutOfCache(SessionContext ctx, java.util.Collection<PromotionGroup> promotionGroups, AbstractOrder order, boolean evaluateRestrictions, PromotionsManager.AutoApplyMode productPromotionMode, PromotionsManager.AutoApplyMode orderPromotionMode, java.util.Date date)
doUpdatePromotionsOutOfCache in class CachingPromotionsManagerpublic SessionContext getSessionContext()
public JaloSession getJaloSession()
public void allowCaching(java.lang.Boolean allowCaching)
Copyright © 2018 SAP SE. All Rights Reserved.