Class DefaultRuleRestrictionStrategy
java.lang.Object
de.hybris.platform.ruleengineservices.rule.strategies.impl.DefaultRuleRestrictionStrategy
- All Implemented Interfaces:
RulePublishRestriction
DefaultRuleRestrictionStrategy decides the maximum num of published rules for each module
only works when ruleengineservices.maximum.limitation.published.rules.enable=true
can be configured via property 'ruleengineservices.maximum.published.rules'
default value is 100
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationServicebooleanisAllowedToPublish(String moduleName, int sourceRulesSize) Applies the strategy to determine the rules can be published or not.voidsetConfigurationService(ConfigurationService configurationService) voidsetEngineRuleDao(EngineRuleDao engineRuleDao)
-
Constructor Details
-
DefaultRuleRestrictionStrategy
public DefaultRuleRestrictionStrategy()
-
-
Method Details
-
isAllowedToPublish
Description copied from interface:RulePublishRestrictionApplies the strategy to determine the rules can be published or not.- Specified by:
isAllowedToPublishin interfaceRulePublishRestriction- Returns:
- the boolean value of isAllowedToPublish
-
getEngineRuleDao
-
setEngineRuleDao
-
getConfigurationService
-
setConfigurationService
-