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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<CatalogVersionToRuleEngineContextMappingModel>
findByContext(java.util.Collection<AbstractRuleEngineContextModel> contexts)
find catalog versions mapped by rule engine contextsjava.util.Collection<CatalogVersionToRuleEngineContextMappingModel>
findMappingsByCatalogVersion(java.util.Collection<CatalogVersionModel> catalogVersions, RuleType ruleType)
returns all mappings for the given catalog versions and rule type.
-
-
-
Method Detail
-
findMappingsByCatalogVersion
java.util.Collection<CatalogVersionToRuleEngineContextMappingModel> findMappingsByCatalogVersion(java.util.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
java.util.Collection<CatalogVersionToRuleEngineContextMappingModel> findByContext(java.util.Collection<AbstractRuleEngineContextModel> contexts)
find catalog versions mapped by rule engine contexts- Parameters:
contexts
- the collection ofAbstractRuleEngineContextModel
- Returns:
- the collection of
CatalogVersionToRuleEngineContextMappingModel
-
-