Class PromotionsController


  • @Controller
    @RequestMapping("/{baseSiteId}/promotions")
    public class PromotionsController
    extends BaseController
    Main Controller for Promotions
    • Constructor Detail

      • PromotionsController

        public PromotionsController()
    • Method Detail

      • getPromotions

        @Secured("ROLE_TRUSTED_CLIENT")
        @RequestMapping(method=GET)
        @ResponseBody
        @Cacheable(value="promotionCache",
                   key="T(de.hybris.platform.commercewebservicescommons.cache.CommerceCacheKeyGenerator).generateKey(false,true,\'getPromotions\',#type,#promotionGroup,#fields)")
        public PromotionListWsDTO getPromotions​(@RequestParam
                                                java.lang.String type,
                                                @RequestParam(required=false)
                                                java.lang.String promotionGroup,
                                                @RequestParam(defaultValue="BASIC")
                                                java.lang.String fields)
      • getPromotion

        @Secured("ROLE_TRUSTED_CLIENT")
        @RequestMapping(value="/{code}",
                        method=GET)
        @Cacheable(value="promotionCache",
                   key="T(de.hybris.platform.commercewebservicescommons.cache.CommerceCacheKeyGenerator).generateKey(false,true,\'getPromotions\',#code,#fields)")
        @ResponseBody
        public PromotionWsDTO getPromotion​(@PathVariable
                                           java.lang.String code,
                                           @RequestParam(defaultValue="BASIC")
                                           java.lang.String fields)
      • validateTypeParameter

        protected void validateTypeParameter​(java.lang.String type)
      • getPromotionList

        protected java.util.List<PromotionData> getPromotionList​(java.lang.String type,
                                                                 java.lang.String promotionGroup)
      • getPromotionList

        protected java.util.List<PromotionData> getPromotionList​(java.lang.String type)