Class DefaultCatalogVersionToRuleEngineContextMappingDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.ruleengine.dao.impl.DefaultCatalogVersionToRuleEngineContextMappingDao
-
- All Implemented Interfaces:
CatalogVersionToRuleEngineContextMappingDao
,Dao
public class DefaultCatalogVersionToRuleEngineContextMappingDao extends AbstractItemDao implements CatalogVersionToRuleEngineContextMappingDao
Default implementation of the CatalogVersionToRuleEngineContextMappingDao interface
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultCatalogVersionToRuleEngineContextMappingDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
filterMappingByRuleType(AbstractRuleEngineContextModel abstractContext, RuleType ruleType)
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.-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findMappingsByCatalogVersion
public java.util.Collection<CatalogVersionToRuleEngineContextMappingModel> findMappingsByCatalogVersion(java.util.Collection<CatalogVersionModel> catalogVersions, RuleType ruleType)
Description copied from interface:CatalogVersionToRuleEngineContextMappingDao
returns all mappings for the given catalog versions and rule type.- Specified by:
findMappingsByCatalogVersion
in interfaceCatalogVersionToRuleEngineContextMappingDao
- 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
public java.util.Collection<CatalogVersionToRuleEngineContextMappingModel> findByContext(java.util.Collection<AbstractRuleEngineContextModel> contexts)
Description copied from interface:CatalogVersionToRuleEngineContextMappingDao
find catalog versions mapped by rule engine contexts- Specified by:
findByContext
in interfaceCatalogVersionToRuleEngineContextMappingDao
- Parameters:
contexts
- the collection ofAbstractRuleEngineContextModel
- Returns:
- the collection of
CatalogVersionToRuleEngineContextMappingModel
-
filterMappingByRuleType
protected boolean filterMappingByRuleType(AbstractRuleEngineContextModel abstractContext, RuleType ruleType)
-
-