|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PricingModelHolderVetoer
Interface to implement a promotion vetoer. Allows promotions to be vetoed before adding to the PricingModelHolder. 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.mPricingModelHolderVetoers
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Method Summary | |
---|---|
java.lang.Object |
prepareForVetoing(PricingEngineService pPricingEngine,
RepositoryItem pProfile)
Prepares a vetoer for vetoing promotions. |
java.lang.String |
vetoPromotion(PricingEngineService pPricingEngine,
RepositoryItem pPromotion,
RepositoryItem pProfile,
java.lang.Object pVetoParam)
Allows the promotion to be vetoed before adding to the PricingModelHolder |
Field Detail |
---|
static final java.lang.String CLASS_VERSION
Method Detail |
---|
java.lang.Object prepareForVetoing(PricingEngineService pPricingEngine, RepositoryItem pProfile)
Prepares a vetoer for vetoing promotions. 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 vetoerpProfile
- Profile of the PricingModelHolder session.
#vetoPromotion(PricingEngineService, RepositoryItem, Object)
java.lang.String vetoPromotion(PricingEngineService pPricingEngine, RepositoryItem pPromotion, RepositoryItem pProfile, java.lang.Object pVetoParam)
Allows the promotion to be vetoed before adding to the PricingModelHolder
Note: the passed in promotion may be a promotion OR a promotionStatus item so implementations must handle either type being passed in.
pPricingEngine
- PricingEngineService that called this vetoerpPromotion
- RepositoryItem promotion or promotionStatus item.pProfile
- Profile of the PricingModelHolder session.pVetoParam
- Object returned by prepareForVetoing method,
guaranteed to not be null
prepareForVetoing(PricingEngineService, RepositoryItem)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |