Class StorePageController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
de.hybris.platform.yacceleratorstorefront.controllers.pages.StorePageController
@Controller
@RequestMapping("/**/store")
public class StorePageController
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 TypeMethodDescriptionprotected StringcreateMetaKeywords(PointOfServiceData pointOfServiceData) getGoogleApiKey(javax.servlet.http.HttpServletRequest request) protected AbstractPageModelprotected StringhandleStoreNotFoundCase(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) protected voidprotected voidprocessLocation(Double sourceLatitude, Double sourceLongitude, String locationQuery, org.springframework.ui.Model model, PointOfServiceData pointOfServiceData) protected voidsetUpMetaData(org.springframework.ui.Model model, PointOfServiceData pointOfServiceData) storeDetail(String storeCode, Double sourceLatitude, Double sourceLongitude, String locationQuery, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) viewMap(String storeCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) 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
-
StorePageController
public StorePageController()
-
-
Method Details
-
getGoogleApiVersion
-
getGoogleApiKey
@ModelAttribute("googleApiKey") public String getGoogleApiKey(javax.servlet.http.HttpServletRequest request) -
storeDetail
@RequestMapping(value="/{storeCode:.*}", method=GET) public String storeDetail(@PathVariable("storeCode") String storeCode, @RequestParam(value="lat",required=false) Double sourceLatitude, @RequestParam(value="long",required=false) Double sourceLongitude, @RequestParam(value="q",required=false) String locationQuery, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
logDebugInfo
-
processLocation
protected void processLocation(@RequestParam(value="lat",required=false) Double sourceLatitude, @RequestParam(value="long",required=false) Double sourceLongitude, @RequestParam(value="q",required=false) String locationQuery, org.springframework.ui.Model model, PointOfServiceData pointOfServiceData) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
setUpMetaData
protected void setUpMetaData(org.springframework.ui.Model model, PointOfServiceData pointOfServiceData) -
viewMap
@RequestMapping(value="/{storeCode:.*}/map", method=GET) public String viewMap(@PathVariable("storeCode") String storeCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
handleStoreNotFoundCase
protected String handleStoreNotFoundCase(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) -
getStoreFinderPage
- Throws:
CMSItemNotFoundException
-
createMetaKeywords
-