| Modifier and Type | Method and Description |
|---|---|
java.util.List<PromotionResultModel> |
DefaultAddCouponActionStrategy.apply(AbstractRuleActionRAO action) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRuleActionRAO |
PromotionEngineServicesKeywordLibrary.evaluatePromotionForProduct(ProductModel product) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PromotionResultModel> |
DefaultOrderAdjustTotalActionStrategy.apply(AbstractRuleActionRAO action)
Creates a
PromotionResultModel if the parameter action is of type DiscountRAO the discount is
added to corresponding to the action Order model. |
java.util.List<PromotionResultModel> |
DefaultShippingActionStrategy.apply(AbstractRuleActionRAO action)
If the parameter action is of type
ShipmentRAO Delivery options set to corresponding fields of Order
model. |
java.util.List<PromotionResultModel> |
DefaultOrderEntryAdjustActionStrategy.apply(AbstractRuleActionRAO action)
If the parameter action is of type
DiscountRAO and is applied to Order Entry the discount is added to
corresponding Order Entry model. |
java.util.List<PromotionResultModel> |
DefaultPotentialPromotionMessageActionStrategy.apply(AbstractRuleActionRAO action)
If the parameter action is of type
DisplayMessageRAO PromotionResultModel for potential promotion message
is created. |
java.util.List<PromotionResultModel> |
DefaultAddProductToCartActionStrategy.apply(AbstractRuleActionRAO action)
If the parameter action is of type
DiscountRAO and is applied to Order Entry the discount is added to
corresponding Order Entry model. |
protected RuleBasedOrderAddProductActionModel |
DefaultAddProductToCartActionStrategy.createOrderAddProductAction(AbstractRuleActionRAO action,
int quantity,
ProductModel product,
PromotionResultModel promoResult) |
protected RuleBasedOrderEntryAdjustActionModel |
DefaultOrderEntryAdjustActionStrategy.createOrderEntryAdjustAction(PromotionResultModel promoResult,
AbstractRuleActionRAO action,
AbstractOrderEntryModel entry,
java.math.BigDecimal discountAmount) |
protected A |
AbstractRuleActionStrategy.createPromotionAction(PromotionResultModel promotionResult,
AbstractRuleActionRAO action)
Creates an instance of the configured
promotionAction (which is a subtype of RuleBasedPromotionActionModel,
sets a new unique UUID, sets this strategy's id, marks the action as
applied, attaches the given promotionResult and tries to lookup the rule which created the given
AbstractRuleActionRAO. |
protected void |
AbstractRuleActionStrategy.handleActionMetadata(AbstractRuleActionRAO action,
AbstractRuleBasedPromotionActionModel actionModel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
QualifyingCategoryPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
boolean |
QualifyingProductPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
boolean |
CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
void |
QualifyingCategoryPotentialPromotionMessageActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
void |
QualifyingProductPotentialPromotionMessageActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
void |
CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
| Modifier and Type | Method and Description |
|---|---|
PromotionResultModel |
PromotionActionService.createPromotionResult(AbstractRuleActionRAO action)
Creates a
PromotionResultModel object for the given AbstractRuleActionRAO. |
AbstractOrderModel |
PromotionActionService.getOrder(AbstractRuleActionRAO action)
Returns the order for the given
action. |
AbstractOrderEntryModel |
PromotionActionService.getOrderEntry(AbstractRuleActionRAO action)
Looks up the
AbstractOrderEntryModel based on the given AbstractRuleActionRAO. |
AbstractRuleEngineRuleModel |
PromotionActionService.getRule(AbstractRuleActionRAO action)
Returns the rule for the given
action. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<PromotionOrderEntryConsumedModel> |
DefaultPromotionActionService.createConsumedEntries(AbstractRuleActionRAO action)
Creates a list of consumed order entries for the given action.
|
PromotionResultModel |
DefaultPromotionActionService.createPromotionResult(AbstractRuleActionRAO actionRao) |
AbstractOrderModel |
DefaultPromotionActionService.getOrder(AbstractRuleActionRAO action) |
AbstractOrderEntryModel |
DefaultPromotionActionService.getOrderEntry(AbstractRuleActionRAO action) |
protected AbstractOrderModel |
DefaultPromotionActionService.getOrderInternal(AbstractRuleActionRAO action)
tries to look up the order for the given action.
|
protected RuleBasedPromotionModel |
DefaultPromotionActionService.getPromotion(AbstractRuleActionRAO abstractRao)
returns the
RuleBasedPromotionModel for the given AbstractRuleActionRAO by looking up the rule
code as stored in getFiredRuleCode(). |
AbstractRuleEngineRuleModel |
DefaultPromotionActionService.getRule(AbstractRuleActionRAO abstractRao)
returns the
AbstractRuleEngineRuleModel for the given AbstractRuleActionRAO by looking up the rule
code as stored in getFiredRuleCode(). |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
RuleActionStrategy.apply(AbstractRuleActionRAO action)
Applies the action described by the given
AbstractRuleActionRAO. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ItemModel> |
DefaultNoOpRuleActionStrategy.apply(AbstractRuleActionRAO action) |
protected boolean |
DefaultRuleActionService.isActionApplicable(AbstractRuleActionRAO action,
java.util.Set<AbstractRuleActionRAO> actions) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DefaultRuleActionService.isActionApplicable(AbstractRuleActionRAO action,
java.util.Set<AbstractRuleActionRAO> actions) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
DefaultRuleEngineCalculationService.getConsumedQuantityForAllDiscounts(java.util.Set<AbstractRuleActionRAO> actions) |
protected int |
DefaultRuleEngineCalculationService.getConsumedQuantityForOrderEntry(OrderEntryRAO orderEntryRao,
java.util.Set<AbstractRuleActionRAO> actions) |
| Modifier and Type | Class and Description |
|---|---|
class |
AddCouponRAO |
class |
DiscountRAO |
class |
DisplayMessageRAO |
class |
FreeProductRAO |
class |
ShipmentRAO |
| Modifier and Type | Method and Description |
|---|---|
java.util.LinkedHashSet<AbstractRuleActionRAO> |
RuleEngineResultRAO.getActions() |
java.util.LinkedHashSet<AbstractRuleActionRAO> |
AbstractActionedRAO.getActions() |
| Modifier and Type | Method and Description |
|---|---|
void |
RuleEngineResultRAO.setActions(java.util.LinkedHashSet<AbstractRuleActionRAO> actions) |
void |
AbstractActionedRAO.setActions(java.util.LinkedHashSet<AbstractRuleActionRAO> actions) |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends AbstractRuleActionRAO> |
AbstractRuleExecutableSupport.consumeOrderEntries(RuleActionContext context,
java.util.Collection<EntriesSelectionStrategyRPD> strategies,
T actionRAO)
Creates new
OrderEntryConusmedRAOs for the given strategies, links them to the given actionRAO and
reduces available quantity of order entry by given quantity for every Order Entry from the set and using quantity
from discountedOrderEntryMap. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractRuleExecutableSupport.addMetadataToRao(AbstractRuleActionRAO rao,
RuleActionContext context) |
protected java.util.Set<OrderEntryConsumedRAO> |
AbstractRuleExecutableSupport.consumeOrderEntries(java.util.Set<OrderEntryRAO> selectedEntries,
java.util.Map<java.lang.Integer,java.lang.Integer> selectedEntriesMap,
AbstractRuleActionRAO actionRAO)
Creates new
OrderEntryConusmedRAOs with the given quantity, links it to the given actionRAO and
reduces available quantity of order entry by given quantity for every Order Entry from the set and using quantity
from discountedOrderEntryMap. |
protected OrderEntryConsumedRAO |
AbstractRuleExecutableSupport.consumeOrderEntry(OrderEntryRAO orderEntryRAO,
AbstractRuleActionRAO actionRAO)
Creates a new
OrderEntryConusmedRAO that consumes the given orderEntryRAO and adds the consumed entry to
the given actionRAO |
protected OrderEntryConsumedRAO |
AbstractRuleExecutableSupport.consumeOrderEntry(OrderEntryRAO orderEntryRAO,
int quantity,
AbstractRuleActionRAO actionRAO)
Creates a new
OrderEntryConusmedRAO that consumes the given orderEntryRAO with the given quantity
and adds the consumed entry to the given actionRAO |
protected OrderEntryConsumedRAO |
AbstractRuleExecutableSupport.consumeOrderEntry(OrderEntryRAO orderEntryRAO,
int quantity,
java.math.BigDecimal discountValue,
AbstractRuleActionRAO actionRAO) |
boolean |
ActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao,
RuleActionContext context)
Checks if the action result is proper to be processed by the strategy
|
protected void |
AbstractRuleExecutableSupport.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
void |
ActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context)
Post process of
AbstractRuleActionRAO. |
void |
AbstractRuleExecutableSupport.setRAOMetaData(RuleActionContext context,
AbstractRuleActionRAO... raos) |
protected void |
AbstractRuleExecutableSupport.updateActionRAOWithConsumed(AbstractRuleActionRAO actionRAO,
OrderEntryConsumedRAO orderEntryConsumedRAO)
Adds given OrderEntryConsumedRAO to the AbstractRuleActionRAO.consumedEntries.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RaoUtils.addAction(AbstractActionedRAO actionedRao,
AbstractRuleActionRAO action)
Sets references between
action and actionedRao. |
| Modifier and Type | Method and Description |
|---|---|
static void |
ConfigurationRulesTestData.setCsticAsActionTarget(AbstractRuleActionRAO action,
java.lang.String csticName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ProductConfigRuleActionStrategy.apply(ConfigModel model,
AbstractRuleActionRAO action)
Applies the action described by the given
AbstractRuleActionRAO. |
boolean |
ProductConfigRuleActionStrategyChecker.checkCsticPartOfModel(ConfigModel model,
AbstractRuleActionRAO action,
java.lang.String actionDescription,
java.util.Map<java.lang.String,CsticModel> csticMap)
checks whether the provided cstic is valid in context of the given model
|
boolean |
ProductConfigRuleActionStrategyChecker.checkValueAssignable(ConfigModel model,
AbstractRuleActionRAO action,
java.lang.String value,
java.lang.String actionDescription,
java.util.Map<java.lang.String,CsticModel> csticMap)
checks whether the given value can be assigned
|
boolean |
ProductConfigRuleActionStrategyChecker.checkValueForamtable(ConfigModel model,
AbstractRuleActionRAO action,
java.lang.String valueToSet,
ProductConfigRuleFormatTranslator rulesFormator,
java.lang.String actionDescription,
java.util.Map<java.lang.String,CsticModel> csticMap)
checks whether the value can be parsed/formatted
|
boolean |
ProductConfigRuleActionStrategyChecker.checkValueUnassigned(ConfigModel model,
AbstractRuleActionRAO action,
java.lang.String value,
java.lang.String actionDescription,
java.util.Map<java.lang.String,CsticModel> csticMap)
checks whether the given value is already assigned
|
CsticModel |
ProductConfigRuleActionStrategyChecker.getCstic(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap)
extracts the cstic from action raos
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ProductConfigAbstractRuleActionStrategy.apply(ConfigModel model,
AbstractRuleActionRAO action) |
boolean |
ProductConfigRuleActionStrategyCheckerImpl.checkCsticPartOfModel(ConfigModel model,
AbstractRuleActionRAO action,
java.lang.String prefix,
java.util.Map<java.lang.String,CsticModel> csticMap) |
boolean |
ProductConfigRuleActionStrategyCheckerImpl.checkValueAssignable(ConfigModel model,
AbstractRuleActionRAO action,
java.lang.String valueToSet,
java.lang.String prefix,
java.util.Map<java.lang.String,CsticModel> csticMap) |
boolean |
ProductConfigRuleActionStrategyCheckerImpl.checkValueForamtable(ConfigModel model,
AbstractRuleActionRAO action,
java.lang.String valueToSet,
ProductConfigRuleFormatTranslator rulesFormator,
java.lang.String prefix,
java.util.Map<java.lang.String,CsticModel> csticMap) |
boolean |
ProductConfigRuleActionStrategyCheckerImpl.checkValueUnassigned(ConfigModel model,
AbstractRuleActionRAO action,
java.lang.String value,
java.lang.String prefix,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
RemoveAssignableValueRuleActionStrategyImpl.executeAction(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
SetCsticValueRuleActionStrategyImpl.executeAction(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
DisplayMessageRuleActionStrategyImpl.executeAction(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
HideCsticRuleActionStrategyImpl.executeAction(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected abstract boolean |
ProductConfigAbstractRuleActionStrategy.executeAction(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
DisplayCsticReadonlyRuleActionStrategyImpl.executeAction(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
CsticModel |
ProductConfigRuleActionStrategyCheckerImpl.getCstic(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected CsticModel |
ProductConfigAbstractRuleActionStrategy.getCstic(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected AbstractRuleEngineRuleModel |
ProductConfigAbstractRuleActionStrategy.getRule(AbstractRuleActionRAO action) |
protected java.lang.String |
RemoveAssignableValueRuleActionStrategyImpl.getValueName(AbstractRuleActionRAO action) |
protected java.lang.String |
SetCsticValueRuleActionStrategyImpl.getValueToSet(AbstractRuleActionRAO action,
CsticModel cstic) |
protected void |
ProductConfigAbstractRuleActionStrategy.handleMessage(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
RemoveAssignableValueRuleActionStrategyImpl.isActionPossible(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
SetCsticValueRuleActionStrategyImpl.isActionPossible(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
DisplayMessageRuleActionStrategyImpl.isActionPossible(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
HideCsticRuleActionStrategyImpl.isActionPossible(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected abstract boolean |
ProductConfigAbstractRuleActionStrategy.isActionPossible(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
DisplayCsticReadonlyRuleActionStrategyImpl.isActionPossible(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
PercentageDiscountForOptionRuleActionStrategyImpl.executeAction(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
DisplayPromoMessageRuleActionStrategyImpl.executeAction(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected java.lang.String |
PercentageDiscountForOptionRuleActionStrategyImpl.getValueToSet(AbstractRuleActionRAO action,
CsticModel cstic) |
protected boolean |
PercentageDiscountForOptionRuleActionStrategyImpl.isActionPossible(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
protected boolean |
DisplayPromoMessageRuleActionStrategyImpl.isActionPossible(ConfigModel model,
AbstractRuleActionRAO action,
java.util.Map<java.lang.String,CsticModel> csticMap) |
| Modifier and Type | Class and Description |
|---|---|
class |
PercentageDiscountForOptionWithMessageRAO |
class |
ProductConfigPromoMessageRAO |
| Modifier and Type | Class and Description |
|---|---|
class |
ProductConfigProcessStepRAO |
| Modifier and Type | Class and Description |
|---|---|
class |
DisplayCsticReadonlyRAO |
class |
HideCsticRAO |
class |
ProductConfigDisplayMessageRAO |
class |
RemoveAssignableValueRAO |
class |
SetCsticValueRAO |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ProductConfigAbstractRAOAction.updateContext(RuleActionContext context,
AbstractRuleActionRAO actionRAO) |
Copyright © 2018 SAP SE. All Rights Reserved.