Class ConsumedCartRAOExtractor
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rao.providers.impl.ConsumedCartRAOExtractor
-
- All Implemented Interfaces:
RAOFactsExtractor
public class ConsumedCartRAOExtractor extends java.lang.Object implements RAOFactsExtractor
Extension of Default cart RAO provider through facts extractor, adding the consumed-awareness functionality
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXPAND_CONSUMED
-
Constructor Summary
Constructors Constructor Description ConsumedCartRAOExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddConsumed(java.util.Set<java.lang.Object> facts, CartRAO cart, java.util.Set<OrderEntryRAO> entries)protected ProductConsumedRAOcreateProductConsumedRAO(OrderEntryRAO orderEntryRAO)java.util.SetexpandFact(java.lang.Object fact)protected RAOConsumptionSupportgetConsumptionSupport()java.lang.StringgetTriggeringOption()booleanisDefault()booleanisMinOption()voidsetConsumptionSupport(RAOConsumptionSupport consumptionSupport)
-
-
-
Field Detail
-
EXPAND_CONSUMED
public static final java.lang.String EXPAND_CONSUMED
- See Also:
- Constant Field Values
-
-
Method Detail
-
expandFact
public java.util.Set expandFact(java.lang.Object fact)
- Specified by:
expandFactin interfaceRAOFactsExtractor
-
addConsumed
protected void addConsumed(java.util.Set<java.lang.Object> facts, CartRAO cart, java.util.Set<OrderEntryRAO> entries)
-
createProductConsumedRAO
protected ProductConsumedRAO createProductConsumedRAO(OrderEntryRAO orderEntryRAO)
-
getTriggeringOption
public java.lang.String getTriggeringOption()
- Specified by:
getTriggeringOptionin interfaceRAOFactsExtractor
-
isMinOption
public boolean isMinOption()
- Specified by:
isMinOptionin interfaceRAOFactsExtractor
-
isDefault
public boolean isDefault()
- Specified by:
isDefaultin interfaceRAOFactsExtractor
-
getConsumptionSupport
protected RAOConsumptionSupport getConsumptionSupport()
-
setConsumptionSupport
public void setConsumptionSupport(RAOConsumptionSupport consumptionSupport)
-
-