Class StockNotificationPageController


  • @Controller
    @Scope("tenant")
    @RequestMapping("/my-account/my-stocknotification")
    public class StockNotificationPageController
    extends AbstractPageController
    • Constructor Detail

      • StockNotificationPageController

        public StockNotificationPageController()
    • Method Detail

      • initBinder

        @InitBinder
        public void initBinder​(org.springframework.web.bind.WebDataBinder binder)
      • getStockNotification

        @GetMapping("/open/{productCode:.*}")
        public java.lang.String getStockNotification​(@PathVariable("productCode")
                                                     java.lang.String encodedProductCode,
                                                     @RequestParam(value="channel",required=false)
                                                     java.lang.String channel,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     org.springframework.ui.Model model)
      • addStockNotification

        @PostMapping("/add/{productCode:.*}")
        @ResponseBody
        public java.lang.String addStockNotification​(@PathVariable
                                                     java.lang.String productCode,
                                                     @ModelAttribute("stockNotificationForm")
                                                     StockNotificationForm stockNotificationForm,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     org.springframework.ui.Model model)
      • removeStockNotification

        @PostMapping("/remove/{productCode:.*}")
        @ResponseBody
        public java.lang.String removeStockNotification​(@PathVariable
                                                        java.lang.String productCode,
                                                        javax.servlet.http.HttpServletResponse response,
                                                        org.springframework.ui.Model model)