Class AbstractTravelEngineService
java.lang.Object
de.hybris.platform.travelrulesengine.services.impl.AbstractTravelEngineService
- All Implemented Interfaces:
TravelEngineService
- Direct Known Subclasses:
DefaultTravelDroolsService
Abstract class for the drools engine service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(List<Object> factObjects, FactContextType contextType) Method to evaluate the objects with applicable rulesprotected de.hybris.platform.ruleengine.RuleEngineServiceprotected Stringprotected de.hybris.platform.ruleengineservices.rao.providers.FactContextFactoryprotected de.hybris.platform.ruleengineservices.action.RuleActionServiceprotected de.hybris.platform.ruleengine.dao.RuleEngineContextDaoprotected RuleEvaluationContextprepareContext(de.hybris.platform.ruleengineservices.rao.providers.impl.FactContext factContext) Method to create the rule evaluation context.provideRAOs(de.hybris.platform.ruleengineservices.rao.providers.impl.FactContext factContext) Method to create the RAO objects for the factsvoidsetCommerceRuleEngineService(de.hybris.platform.ruleengine.RuleEngineService commerceRuleEngineService) voidsetDefaultRuleEngineContextName(String defaultRuleEngineContextName) voidsetFactContextFactory(de.hybris.platform.ruleengineservices.rao.providers.FactContextFactory factContextFactory) voidsetRuleActionService(de.hybris.platform.ruleengineservices.action.RuleActionService ruleActionService) voidsetRuleEngineContextDao(de.hybris.platform.ruleengine.dao.RuleEngineContextDao ruleEngineContextDao)
-
Constructor Details
-
AbstractTravelEngineService
public AbstractTravelEngineService()
-
-
Method Details
-
evaluate
Description copied from interface:TravelEngineServiceMethod to evaluate the objects with applicable rules- Specified by:
evaluatein interfaceTravelEngineService- Parameters:
factObjects- the fact objectscontextType- the context type- Returns:
- rule evaluation result
-
prepareContext
protected RuleEvaluationContext prepareContext(de.hybris.platform.ruleengineservices.rao.providers.impl.FactContext factContext) Method to create the rule evaluation context. The default context name set for the bean and the facts are set to the context.- Parameters:
factContext- the fact context- Returns:
- rule evaluation context
-
provideRAOs
protected Set<Object> provideRAOs(de.hybris.platform.ruleengineservices.rao.providers.impl.FactContext factContext) Method to create the RAO objects for the facts- Parameters:
factContext- the fact context- Returns:
- set
-
getRuleEngineContextDao
protected de.hybris.platform.ruleengine.dao.RuleEngineContextDao getRuleEngineContextDao()- Returns:
- the ruleEngineContextDao
-
setRuleEngineContextDao
public void setRuleEngineContextDao(de.hybris.platform.ruleengine.dao.RuleEngineContextDao ruleEngineContextDao) - Parameters:
ruleEngineContextDao- the ruleEngineContextDao to set
-
getDefaultRuleEngineContextName
- Returns:
- the defaultRuleEngineContextName
-
setDefaultRuleEngineContextName
- Parameters:
defaultRuleEngineContextName- the defaultRuleEngineContextName to set
-
getRuleActionService
protected de.hybris.platform.ruleengineservices.action.RuleActionService getRuleActionService()- Returns:
- the ruleActionService
-
setRuleActionService
public void setRuleActionService(de.hybris.platform.ruleengineservices.action.RuleActionService ruleActionService) - Parameters:
ruleActionService- the ruleActionService to set
-
getCommerceRuleEngineService
protected de.hybris.platform.ruleengine.RuleEngineService getCommerceRuleEngineService()- Returns:
- the commerceRuleEngineService
-
setCommerceRuleEngineService
public void setCommerceRuleEngineService(de.hybris.platform.ruleengine.RuleEngineService commerceRuleEngineService) - Parameters:
commerceRuleEngineService- the commerceRuleEngineService to set
-
getFactContextFactory
protected de.hybris.platform.ruleengineservices.rao.providers.FactContextFactory getFactContextFactory()- Returns:
- the factContextFactory
-
setFactContextFactory
public void setFactContextFactory(de.hybris.platform.ruleengineservices.rao.providers.FactContextFactory factContextFactory) - Parameters:
factContextFactory- the factContextFactory to set
-