Class PromotionEvaluationContext.ConsumptionLogger
java.lang.Object
de.hybris.platform.promotions.result.PromotionEvaluationContext.ConsumptionLogger
- Enclosing class:
- PromotionEvaluationContext
Consumptionlogger keeps track of all consumptions during an evaluation run.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabandonOperation(AbstractPromotion promotion) completeOperation(AbstractPromotion promotion, boolean removeFromOrder) Get every operation performed since the logger was created.voidvoidstartLogging(AbstractPromotion promotion)
-
Constructor Details
-
ConsumptionLogger
protected ConsumptionLogger()
-
-
Method Details
-
getHistory
-
logOperation
-
getAllOperations
Get every operation performed since the logger was created.- Returns:
- A list of all consumptions that have been made during the lifetime of this context
-
startLogging
-
completeOperation
public List<PromotionOrderEntryConsumed> completeOperation(AbstractPromotion promotion, boolean removeFromOrder) -
abandonOperation
-