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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfilterMappingByRuleType(AbstractRuleEngineContextModel abstractContext, RuleType ruleType) find catalog versions mapped by rule engine contextsfindMappingsByCatalogVersion(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
-
Constructor Details
-
DefaultCatalogVersionToRuleEngineContextMappingDao
public DefaultCatalogVersionToRuleEngineContextMappingDao()
-
-
Method Details
-
findMappingsByCatalogVersion
public Collection<CatalogVersionToRuleEngineContextMappingModel> findMappingsByCatalogVersion(Collection<CatalogVersionModel> catalogVersions, RuleType ruleType) Description copied from interface:CatalogVersionToRuleEngineContextMappingDaoreturns all mappings for the given catalog versions and rule type.- Specified by:
findMappingsByCatalogVersionin 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 Collection<CatalogVersionToRuleEngineContextMappingModel> findByContext(Collection<AbstractRuleEngineContextModel> contexts) Description copied from interface:CatalogVersionToRuleEngineContextMappingDaofind catalog versions mapped by rule engine contexts- Specified by:
findByContextin interfaceCatalogVersionToRuleEngineContextMappingDao- Parameters:
contexts- the collection ofAbstractRuleEngineContextModel- Returns:
- the collection of
CatalogVersionToRuleEngineContextMappingModel
-
filterMappingByRuleType
protected boolean filterMappingByRuleType(AbstractRuleEngineContextModel abstractContext, RuleType ruleType)
-