| Modifier and Type | Method and Description |
|---|---|
List<PromotionResult> |
RuleBasedPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
RuleBasedPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
List<PromotionResult> |
OrderPromotionsTabChip.getFiredOrderPromotions() |
List<PromotionResult> |
OrderPromotionsTabChip.getPotentialOrderPromotions() |
| Modifier and Type | Method and Description |
|---|---|
protected PromotionResult |
AbstractPromotionsService.getResult(PromotionResultModel result) |
| Modifier and Type | Class and Description |
|---|---|
class |
CachedPromotionResult |
class |
GeneratedCachedPromotionResult
Generated class for type
CachedPromotionResult. |
| Modifier and Type | Field and Description |
|---|---|
protected static OneToManyHandler<PromotionResult> |
GeneratedPromotionsManager.ORDER2PROMOTIONRESULTSRELATIONALLPROMOTIONRESULTSHANDLER
OneToManyHandler for handling 1:n ALLPROMOTIONRESULTS's relation attributes from 'many' side. |
| Modifier and Type | Method and Description |
|---|---|
PromotionResult |
GeneratedPromotionsManager.createPromotionResult(Map attributeValues) |
PromotionResult |
PromotionsManager.createPromotionResult(SessionContext ctx,
AbstractPromotion promotion,
AbstractOrder order,
float certainty)
Create a new
PromotionResult instance. |
PromotionResult |
CachingPromotionsManager.createPromotionResult(SessionContext ctx,
AbstractPromotion promotion,
AbstractOrder order,
float certainty) |
PromotionResult |
GeneratedPromotionsManager.createPromotionResult(SessionContext ctx,
Map attributeValues) |
PromotionResult |
GeneratedAbstractPromotionAction.getPromotionResult()
Generated method - Getter of the
AbstractPromotionAction.promotionResult attribute. |
PromotionResult |
GeneratedPromotionOrderEntryConsumed.getPromotionResult()
Generated method - Getter of the
PromotionOrderEntryConsumed.promotionResult attribute. |
PromotionResult |
CachedPromotionNullAction.getPromotionResult(SessionContext ctx) |
PromotionResult |
CachedPromotionOrderEntryAdjustAction.getPromotionResult(SessionContext ctx) |
PromotionResult |
GeneratedAbstractPromotionAction.getPromotionResult(SessionContext ctx)
Generated method - Getter of the
AbstractPromotionAction.promotionResult attribute. |
PromotionResult |
GeneratedPromotionOrderEntryConsumed.getPromotionResult(SessionContext ctx)
Generated method - Getter of the
PromotionOrderEntryConsumed.promotionResult attribute. |
PromotionResult |
CachedPromotionOrderEntryConsumed.getPromotionResult(SessionContext ctx) |
PromotionResult |
CachedPromotionOrderChangeDeliveryModeAction.getPromotionResult(SessionContext ctx) |
PromotionResult |
CachedPromotionOrderAdjustTotalAction.getPromotionResult(SessionContext ctx) |
PromotionResult |
CachedPromotionOrderAddFreeGiftAction.getPromotionResult(SessionContext ctx) |
protected PromotionResult |
PromotionResult.transferToOrder(SessionContext ctx,
Order target)
Creates a deep clone of this promotion result and attach it to the specified order.
|
| Modifier and Type | Method and Description |
|---|---|
List<PromotionResult> |
OrderThresholdDiscountPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
OrderThresholdFreeVoucherPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductFixedPricePromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductBundlePromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductPerfectPartnerPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductPerfectPartnerBundlePromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
OrderThresholdFreeGiftPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductPercentageDiscountPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductMultiBuyPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
OrderThresholdChangeDeliveryModePromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
OrderThresholdPerfectPartnerPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductOneToOnePerfectPartnerPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductBOGOFPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
NullPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
List<PromotionResult> |
ProductSteppedMultiBuyPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext) |
abstract List<PromotionResult> |
AbstractPromotion.evaluate(SessionContext ctx,
PromotionEvaluationContext promoContext)
Evaluate whether a promotion can fire or not.
|
protected List<PromotionResult> |
PromotionsManager.evaluatePromotion(SessionContext ctx,
PromotionEvaluationContext promoContext,
AbstractPromotion promotion) |
List<PromotionResult> |
CachingStrategy.get(String code) |
List<PromotionResult> |
DefaultCachingStrategy.get(String code) |
Set<PromotionResult> |
GeneratedPromotionsManager.getAllPromotionResults(AbstractOrder item)
Generated method - Getter of the
AbstractOrder.allPromotionResults attribute. |
Set<PromotionResult> |
GeneratedPromotionsManager.getAllPromotionResults(SessionContext ctx,
AbstractOrder item)
Generated method - Getter of the
AbstractOrder.allPromotionResults attribute. |
protected Map<String,List<PromotionResult>> |
DefaultCachingStrategy.getCache() |
Map<String,List<PromotionResult>> |
DefaultCachingStrategy.SessionCacheContainer.getCache() |
protected List<PromotionResult> |
CachingPromotionsManager.getNonCachedPromotionResultsInternal(SessionContext ctx,
AbstractOrder order) |
protected List<PromotionResult> |
CachingPromotionsManagerTest.MockCachingPromotionsManager.getNonCachedPromotionResultsInternal(SessionContext ctx,
AbstractOrder order) |
protected List<PromotionResult> |
PromotionsManager.getPromotionResultsInternal(SessionContext ctx,
AbstractOrder order)
Get the list of promotion results for the specified order.
|
protected List<PromotionResult> |
CachingPromotionsManager.getPromotionResultsInternal(SessionContext ctx,
AbstractOrder order) |
| Modifier and Type | Method and Description |
|---|---|
void |
GeneratedPromotionsManager.addToAllPromotionResults(AbstractOrder item,
PromotionResult value)
Generated method - Adds
value to allPromotionResults. |
void |
GeneratedPromotionsManager.addToAllPromotionResults(SessionContext ctx,
AbstractOrder item,
PromotionResult value)
Generated method - Adds
value to allPromotionResults. |
protected void |
OrderThresholdDiscountPromotion.buildPromotionResultDataUnigueKey(SessionContext ctx,
PromotionResult promotionResult,
StringBuilder builder)
Override buildPromotionResultDataUnigueKey.
|
protected void |
OrderThresholdFreeVoucherPromotion.buildPromotionResultDataUnigueKey(SessionContext ctx,
PromotionResult promotionResult,
StringBuilder builder)
Override buildPromotionResultDataUnigueKey.
|
protected void |
OrderThresholdFreeGiftPromotion.buildPromotionResultDataUnigueKey(SessionContext ctx,
PromotionResult promotionResult,
StringBuilder builder)
Override buildPromotionResultDataUnigueKey.
|
protected void |
AbstractPromotion.buildPromotionResultDataUnigueKey(SessionContext ctx,
PromotionResult promotionResult,
StringBuilder builder)
Build a unique identifier for a PromotionResult.
|
PromotionOrderAddFreeGiftAction |
PromotionsManager.createPromotionOrderAddFreeGiftAction(SessionContext ctx,
Product product,
PromotionResult result)
Create a new
PromotionOrderAddFreeGiftAction instance. |
PromotionOrderAddFreeGiftAction |
CachingPromotionsManager.createPromotionOrderAddFreeGiftAction(SessionContext ctx,
Product product,
PromotionResult result) |
protected String |
AbstractPromotion.getPromotionResultDataUnigueKey(SessionContext ctx,
PromotionResult promotionResult)
Generate a string identifier that can be used to establish if 2 PromotionResults are the same.
|
String |
OrderThresholdDiscountPromotion.getResultDescription(SessionContext ctx,
PromotionResult result,
Locale locale) |
String |
OrderThresholdFreeVoucherPromotion.getResultDescription(SessionContext ctx,
PromotionResult result,
Locale locale) |
String |
ProductFixedPricePromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
ProductBundlePromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
ProductPerfectPartnerPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
ProductPerfectPartnerBundlePromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
OrderThresholdFreeGiftPromotion.getResultDescription(SessionContext ctx,
PromotionResult result,
Locale locale) |
String |
ProductPercentageDiscountPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
ProductMultiBuyPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
OrderThresholdChangeDeliveryModePromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
OrderThresholdPerfectPartnerPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
ProductOneToOnePerfectPartnerPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
ProductBOGOFPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
String |
NullPromotion.getResultDescription(SessionContext ctx,
PromotionResult result,
Locale locale) |
String |
ProductSteppedMultiBuyPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale) |
abstract String |
AbstractPromotion.getResultDescription(SessionContext ctx,
PromotionResult promotionResult,
Locale locale)
Get a localized user presentable description for the result of this promotion.
|
void |
GeneratedPromotionsManager.removeFromAllPromotionResults(AbstractOrder item,
PromotionResult value)
Generated method - Removes
value from allPromotionResults. |
void |
CachingPromotionsManager.removeFromAllPromotionResults(SessionContext ctx,
AbstractOrder item,
PromotionResult value) |
void |
GeneratedPromotionsManager.removeFromAllPromotionResults(SessionContext ctx,
AbstractOrder item,
PromotionResult value)
Generated method - Removes
value from allPromotionResults. |
void |
GeneratedAbstractPromotionAction.setPromotionResult(PromotionResult value)
Generated method - Setter of the
AbstractPromotionAction.promotionResult attribute. |
void |
GeneratedPromotionOrderEntryConsumed.setPromotionResult(PromotionResult value)
Generated method - Setter of the
PromotionOrderEntryConsumed.promotionResult attribute. |
void |
CachedPromotionNullAction.setPromotionResult(SessionContext ctx,
PromotionResult promotionResult) |
void |
CachedPromotionOrderEntryAdjustAction.setPromotionResult(SessionContext ctx,
PromotionResult promotionResult) |
void |
GeneratedAbstractPromotionAction.setPromotionResult(SessionContext ctx,
PromotionResult value)
Generated method - Setter of the
AbstractPromotionAction.promotionResult attribute. |
void |
GeneratedPromotionOrderEntryConsumed.setPromotionResult(SessionContext ctx,
PromotionResult value)
Generated method - Setter of the
PromotionOrderEntryConsumed.promotionResult attribute. |
void |
CachedPromotionOrderEntryConsumed.setPromotionResult(SessionContext ctx,
PromotionResult result) |
void |
CachedPromotionOrderChangeDeliveryModeAction.setPromotionResult(SessionContext ctx,
PromotionResult promotionResult) |
void |
CachedPromotionOrderAdjustTotalAction.setPromotionResult(SessionContext ctx,
PromotionResult promotionResult) |
void |
CachedPromotionOrderAddFreeGiftAction.setPromotionResult(SessionContext ctx,
PromotionResult promotionResult) |
| Modifier and Type | Method and Description |
|---|---|
void |
CachingStrategy.put(String code,
List<PromotionResult> results) |
void |
DefaultCachingStrategy.put(String code,
List<PromotionResult> results) |
void |
GeneratedPromotionsManager.setAllPromotionResults(AbstractOrder item,
Set<PromotionResult> value)
Generated method - Setter of the
AbstractOrder.allPromotionResults attribute. |
void |
GeneratedPromotionsManager.setAllPromotionResults(SessionContext ctx,
AbstractOrder item,
Set<PromotionResult> value)
Generated method - Setter of the
AbstractOrder.allPromotionResults attribute. |
| Modifier and Type | Method and Description |
|---|---|
List<PromotionResult> |
PromotionOrderResults.getAllOrderPromotions()
Return a list of results for promotions that did not consume products.
|
List<PromotionResult> |
PromotionOrderResults.getAllProductPromotions()
Return a list of results for promotions that consumed products.
|
List<PromotionResult> |
PromotionOrderResults.getAllResults()
Returns all
PromotionResult objects. |
List<PromotionResult> |
PromotionOrderResults.getAppliedOrderPromotions()
Return a list of results for promotions that fired and did not consume products and have been applied.
|
List<PromotionResult> |
PromotionOrderResults.getAppliedProductPromotions()
Return a list of results for promotions that fired and consumed products and have been applied.
|
List<PromotionResult> |
PromotionOrderResults.getFiredOrderPromotions()
Return a list of results for promotions that fired and did not consume products.
|
List<PromotionResult> |
PromotionOrderResults.getFiredProductPromotions()
Return a list of results for promotions that fired and consumed products.
|
List<PromotionResult> |
PromotionOrderResults.getPotentialOrderPromotions()
Return a list of results for promotions that fired and did not consume products and have been applied.
|
List<PromotionResult> |
PromotionOrderResults.getPotentialProductPromotions()
Return a list of results for promotions that fired and consumed products and have been applied.
|
List<PromotionResult> |
WrappedOrderEntry.getPromotionResults()
The list of
PromotionResult objects that applied to this order entry. |
protected List<PromotionResult> |
PromotionOrderResults.getPromotionResults(PromotionOrderResults.PromotionResultStatus statusFlag,
PromotionOrderResults.PromotionResultProducts productsFlag)
Return a list of results for promotions that meet the specified criteria.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
WrappedOrderEntry.addPromotionResult(SessionContext ctx,
PromotionResult promotionResult)
Add a promotion result to this wrapped order entry.
|
int |
WrappedOrderEntry.PromotionResultComparator.compare(PromotionResult a,
PromotionResult b) |
protected static long |
PromotionOrderResults.getConsumedQuantityForEntry(SessionContext ctx,
PromotionResult result,
AbstractOrderEntry orderEntry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
WrappedOrderEntry.addPromotionResults(SessionContext ctx,
Collection<PromotionResult> promotionResults)
Add a multiple promotion results to this wrapped order entry.
|
protected static long |
PromotionOrderResults.getMaxConsumedQuantityForEntry(SessionContext ctx,
List<PromotionResult> promotionResults,
AbstractOrderEntry orderEntry) |
| Constructor and Description |
|---|
PromotionOrderResults(SessionContext ctx,
AbstractOrder order,
List<PromotionResult> promotionResults,
double changeFromLastResults)
Constructor.
|
WrappedOrderEntry(SessionContext ctx,
AbstractOrderEntry orderEntry,
long quantity,
Collection<PromotionResult> promotionResults) |
Copyright © 2017 SAP SE. All Rights Reserved.