Interface CatalogVersionToRuleEngineContextMappingDao
- All Known Implementing Classes:
DefaultCatalogVersionToRuleEngineContextMappingDao
public interface CatalogVersionToRuleEngineContextMappingDao
DAO for retrieving the mapping items of catalog version to rule engine context
-
Method Summary
Modifier and TypeMethodDescriptionfind catalog versions mapped by rule engine contextsfindMappingsByCatalogVersion(Collection<CatalogVersionModel> catalogVersions, RuleType ruleType) returns all mappings for the given catalog versions and rule type.
-
Method Details
-
findMappingsByCatalogVersion
Collection<CatalogVersionToRuleEngineContextMappingModel> findMappingsByCatalogVersion(Collection<CatalogVersionModel> catalogVersions, RuleType ruleType) returns all mappings for the given catalog versions and rule type.- Parameters:
catalogVersions- the versions to lookup mappings for (can be empty/null)ruleType- the ruleType: filters to return only mappings which rules module is of the given rule type (can be null)- Returns:
- a collection of mappings
-
findByContext
Collection<CatalogVersionToRuleEngineContextMappingModel> findByContext(Collection<AbstractRuleEngineContextModel> contexts) find catalog versions mapped by rule engine contexts- Parameters:
contexts- the collection ofAbstractRuleEngineContextModel- Returns:
- the collection of
CatalogVersionToRuleEngineContextMappingModel
-