|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PricingModelEvaluationVetoer
Interface to implement a promotion evaluation vetoer. Allows promotions to be vetoed before being evaluated. Vetoers can be configured for a pricing engine. The engine will first call the prepareForVetoing method before iterating over the promotions and calling the vetoPromotion method.
PricingEngineService.mPricingModelEvaluationVetoers
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Method Summary | |
---|---|
java.lang.Object |
prepareForVetoing(PricingEngineService pPricingEngine,
PricingContext pPricingContext,
java.util.Map pExtraParametersMap)
Prepares a vetoer for vetoing promotions. |
java.lang.String |
vetoPromotion(PricingEngineService pPricingEngine,
PricingContext pPricingContext,
java.util.Map pExtraParametersMap,
java.lang.Object pVetoParam)
Allows the promotion in pPricingContext to be vetoed. |
Field Detail |
---|
static final java.lang.String CLASS_VERSION
Method Detail |
---|
java.lang.Object prepareForVetoing(PricingEngineService pPricingEngine, PricingContext pPricingContext, java.util.Map pExtraParametersMap)
Prepares a vetoer for vetoing promotions.
This allows a vetoer to inspect the pricing context and extract any information needed to do it's vetoing. e.g. a sku vetoer might extract the skus from the order. This information can be returned from this method as an Object which will subsequently be passed into the vetoPromotion method for vetoing each promotion.
An implementation should only return null if it's vetoPromotion method should not be subsequently called for each promotion.
pPricingEngine
- PricingEngineService that called this vetoerpPricingContext
- PricingContext for this pricing operationpExtraParametersMap
- Map of extra parameters if needed
vetoPromotion(PricingEngineService, PricingContext, Map, Object)
java.lang.String vetoPromotion(PricingEngineService pPricingEngine, PricingContext pPricingContext, java.util.Map pExtraParametersMap, java.lang.Object pVetoParam)
Allows the promotion in pPricingContext to be vetoed.
A vetoer could inspect the pricing context or use the passed in pVetoParam Object to decide whether the promotion should be vetoed.
pPricingEngine
- PricingEngineService that called this vetoerpPricingContext
- PricingContext including the promotion to be checkedpExtraParametersMap
- Map of extra parameters if neededpVetoParam
- Object returned by prepareForVetoing method,
guaranteed to not be null.
prepareForVetoing(PricingEngineService, PricingContext, Map)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |