Class AbstractExpandedRAOProvider<T,R>
java.lang.Object
de.hybris.platform.ruleengineservices.rao.providers.impl.AbstractExpandedRAOProvider<T,R>
- All Implemented Interfaces:
ExpandedRAOProvider<T>,RAOProvider<T>,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
AbstractExpandedRAOProviderUnitTest.MockExpandedRAOProvider,DefaultCartRAOProvider
public abstract class AbstractExpandedRAOProvider<T,R>
extends Object
implements ExpandedRAOProvider<T>, org.springframework.beans.factory.InitializingBean
The abstract class encapsulates logic to support RAO expansion processing options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<String>protected Collection<String>protected Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExtraDefaultOptions(List<RAOFactsExtractor> raoExtractorList) addExtraMinOptions(List<RAOFactsExtractor> raoExtractorList) protected voidaddExtraRAOFacts(Set expandedFactsSet, R raoFact, Collection<String> filteredOptions) addExtraValidOptions(List<RAOFactsExtractor> raoExtractorList) protected voidaddOptionConsumers(RAOFactsExtractor raoFactsExtractor) voidprotected abstract RexpandFactModel(T modelFact) expandFactModel(T modelFact, Collection<String> options) expandRAO(R rao, Collection<String> options) protected Collection<String>getConcurrentlySafeOptions(Collection<String> options) protected Optional<BiConsumer<Set<Object>,R>> getConsumer(String option) protected Collection<String>protected List<RAOFactsExtractor>protected Collection<String>getFilteredOptions(Collection<String> options) protected Collection<String>protected Collection<String>protected voidvoidsetConsumerMap(Map<String, BiConsumer<Set<Object>, R>> consumerMap) voidsetDefaultOptions(Collection<String> defaultOptions) voidsetFactExtractorList(List<RAOFactsExtractor> factExtractorList) voidsetMinOptions(Collection<String> minOptions) voidsetValidOptions(Collection<String> validOptions)
-
Field Details
-
validOptions
-
defaultOptions
-
minOptions
-
-
Constructor Details
-
AbstractExpandedRAOProvider
public AbstractExpandedRAOProvider()
-
-
Method Details
-
expandFactModel
- Specified by:
expandFactModelin interfaceRAOProvider<T>
-
expandFactModel
- Specified by:
expandFactModelin interfaceExpandedRAOProvider<T>
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
populateRaoFactsExtractorConsumers
protected void populateRaoFactsExtractorConsumers() -
addExtraRAOFacts
protected void addExtraRAOFacts(Set expandedFactsSet, R raoFact, Collection<String> filteredOptions) -
createRAO
-
addOptionConsumers
-
getConsumer
-
expandRAO
-
getFilteredOptions
-
addExtraValidOptions
-
addExtraDefaultOptions
-
addExtraMinOptions
-
getFactExtractorList
-
setFactExtractorList
-
getDefaultOptions
-
getValidOptions
-
getMinOptions
-
getConcurrentlySafeOptions
-
setConsumerMap
-
getConsumerMap
-
setMinOptions
-
setValidOptions
-
setDefaultOptions
-