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_8Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStockNotification(String productCode, StockNotificationForm stockNotificationForm, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) getStockNotification(String encodedProductCode, String channel, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) removeStockNotification(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, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Constructor Details
-
StockNotificationPageController
public StockNotificationPageController()
-
-
Method Details
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder) -
getStockNotification
@GetMapping("/open/{productCode:.*}") public String getStockNotification(@PathVariable("productCode") String encodedProductCode, @RequestParam(value="channel",required=false) String channel, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
addStockNotification
@PostMapping("/add/{productCode:.*}") @ResponseBody public String addStockNotification(@PathVariable String productCode, @ModelAttribute("stockNotificationForm") StockNotificationForm stockNotificationForm, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
removeStockNotification
-