Class PromotionsController

java.lang.Object
de.hybris.platform.ycommercewebservices.v2.controller.BaseController
de.hybris.platform.ycommercewebservices.v2.controller.PromotionsController

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

    • PromotionsController

      public PromotionsController()
  • Method Details

    • 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 String type, @RequestParam(required=false) String promotionGroup, @RequestParam(defaultValue="BASIC") 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 String code, @RequestParam(defaultValue="BASIC") String fields)
    • validateTypeParameter

      protected void validateTypeParameter(String type)
    • getPromotionList

      protected List<PromotionData> getPromotionList(String type, String promotionGroup)
    • getPromotionList

      protected List<PromotionData> getPromotionList(String type)
    • getCommercePromotionFacade

      protected CommercePromotionFacade getCommercePromotionFacade()