Class StockNotificationPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.stocknotificationaddon.controllers.pages.StockNotificationPageController
-
@Controller @Scope("tenant") @RequestMapping("/my-account/my-stocknotification") public class StockNotificationPageController extends AbstractPageController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
CMS_PAGE_MODEL, CMS_PAGE_TITLE, PAGE_ROOT, REDIRECT_TO_LOGIN_FOR_CHECKOUT, REDIRECT_TO_MULTISTEP_CHECKOUT, REGISTRATION_CONSENT_ID, UTF_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description StockNotificationPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddStockNotification(java.lang.String productCode, StockNotificationForm stockNotificationForm, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)java.lang.StringgetStockNotification(java.lang.String encodedProductCode, java.lang.String channel, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)voidinitBinder(org.springframework.web.bind.WebDataBinder binder)java.lang.StringremoveStockNotification(java.lang.String productCode, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConfigurationService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
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)
-
-