Class DefaultRuleGroupDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.ruleengineservices.rule.dao.impl.DefaultRuleGroupDao
- All Implemented Interfaces:
RuleGroupDao,Dao
Default implementation of
RuleGroupDao-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all rule groups which has no any rulesprotected List<RuleGroupModel>findRuleGroupByCode(String code) Return a rule groupfindRuleGroupOfType(RuleType engineRuleType) Returns rule groups which has rules corresponding to the specified engine rule typeMethods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Field Details
-
GET_RULE_GROUP_FOR_ENGINE_RULE_TYPE
- See Also:
-
GET_ALL_RULE_GROUPS_QUERY
- See Also:
-
GET_RULE_GROUP_BY_CODE
- See Also:
-
-
Constructor Details
-
DefaultRuleGroupDao
public DefaultRuleGroupDao()
-
-
Method Details
-
findRuleGroupByCode
Description copied from interface:RuleGroupDaoReturn a rule group- Specified by:
findRuleGroupByCodein interfaceRuleGroupDao- Parameters:
code- the Rule group code- Returns:
- an optional of the rule group with code
-
findRuleGroupOfType
Description copied from interface:RuleGroupDaoReturns rule groups which has rules corresponding to the specified engine rule type- Specified by:
findRuleGroupOfTypein interfaceRuleGroupDao- Parameters:
engineRuleType- the engine rule type- Returns:
- list of the rule groups
-
findAllReferredRuleGroups
-
findAllNotReferredRuleGroups
Description copied from interface:RuleGroupDaoReturns all rule groups which has no any rules- Specified by:
findAllNotReferredRuleGroupsin interfaceRuleGroupDao- Returns:
- list of the rule groups
-