Class CxPromotionsForCatalogQueryExecutor
java.lang.Object
de.hybris.platform.personalizationwebservices.queries.impl.AbstractRestQueryExecutor
de.hybris.platform.personalizationpromotionsweb.queries.CxPromotionsForCatalogQueryExecutor
- All Implemented Interfaces:
RestQueryExecutor
Finds promotions for given catalog and catalog version
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildCatalogVersionKey(String catalogKey) protected List<CatalogVersionModel>buildCatalogVersions(Map<String, String> params) protected List<CatalogVersionWsDTO>buildCatalogVersionsDTOs(Map<String, String> params) protected intprotected PromotionRuleListWsDTOexecuteAfterValidation(Map<String, String> params) protected List<AbstractRuleModel>getActiveRules(CatalogVersionModel catalogVersion) getCatalogsForReadAccess(Map<String, String> params) getCatalogsForWriteAccess(Map<String, String> params) protected CatalogVersionModelgetCatalogVersionModel(String catalog, String version) protected CatalogVersionServiceprotected Converter<PromotionSourceRuleModel,PromotionRuleWsDTO> protected RuleServiceprotected SourceRuleInspectorprotected booleanhasCatalogVersion(String catalogKey, Set<String> keySet) protected booleanisCatalogKey(String key) protected booleanisCxAwareRule(SourceRuleModel sourceRule) protected voidrejectCatalogKey(String catalogKey, org.springframework.validation.Errors errors) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetPromotionConverter(Converter<PromotionSourceRuleModel, PromotionRuleWsDTO> promotionConverter) voidsetRuleService(RuleService ruleService) voidsetSourceRuleInspector(SourceRuleInspector sourceRuleInspector) protected voidvalidateInputParams(Map<String, String> params, org.springframework.validation.Errors errors) Methods inherited from class de.hybris.platform.personalizationwebservices.queries.impl.AbstractRestQueryExecutor
execute, getCatalogFromParams, getLocalViewExecutor, getQueryEndpointPermissionsChecker, setLocalViewExecutor, setQueryEndpointPermissionsChecker, validate, validateMissingField
-
Constructor Details
-
CxPromotionsForCatalogQueryExecutor
public CxPromotionsForCatalogQueryExecutor()
-
-
Method Details
-
validateInputParams
protected void validateInputParams(Map<String, String> params, org.springframework.validation.Errors errors) - Specified by:
validateInputParamsin classAbstractRestQueryExecutor
-
isCatalogKey
-
buildCatalogVersionKey
-
hasCatalogVersion
-
rejectCatalogKey
-
executeAfterValidation
- Specified by:
executeAfterValidationin classAbstractRestQueryExecutor
-
isCxAwareRule
-
buildCatalogVersions
-
buildCatalogVersionsDTOs
-
getCatalogVersionModel
-
getActiveRules
-
comparePromotions
-
getCatalogsForWriteAccess
- Returns:
- The catalogs the query needs to write on.
-
getCatalogsForReadAccess
- Returns:
- The catalogs the query needs toread from.
-
getPromotionConverter
-
getRuleService
-
getSourceRuleInspector
-
getCatalogVersionService
-
setPromotionConverter
public void setPromotionConverter(Converter<PromotionSourceRuleModel, PromotionRuleWsDTO> promotionConverter) -
setRuleService
-
setCatalogVersionService
-
setSourceRuleInspector
-