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_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description StorePageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcreateMetaKeywords(PointOfServiceData pointOfServiceData)java.lang.StringgetGoogleApiKey(javax.servlet.http.HttpServletRequest request)java.lang.StringgetGoogleApiVersion()protected AbstractPageModelgetStoreFinderPage()protected java.lang.StringhandleStoreNotFoundCase(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)protected voidlogDebugInfo(java.io.UnsupportedEncodingException e)protected voidprocessLocation(java.lang.Double sourceLatitude, java.lang.Double sourceLongitude, java.lang.String locationQuery, org.springframework.ui.Model model, PointOfServiceData pointOfServiceData)protected voidsetUpMetaData(org.springframework.ui.Model model, PointOfServiceData pointOfServiceData)java.lang.StringstoreDetail(java.lang.String storeCode, java.lang.Double sourceLatitude, java.lang.Double sourceLongitude, java.lang.String locationQuery, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringviewMap(java.lang.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, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
Method Detail
-
getGoogleApiVersion
@ModelAttribute("googleApiVersion") public java.lang.String getGoogleApiVersion()
-
getGoogleApiKey
@ModelAttribute("googleApiKey") public java.lang.String getGoogleApiKey(javax.servlet.http.HttpServletRequest request)
-
storeDetail
@RequestMapping(value="/{storeCode:.*}", method=GET) public java.lang.String storeDetail(@PathVariable("storeCode") java.lang.String storeCode, @RequestParam(value="lat",required=false) java.lang.Double sourceLatitude, @RequestParam(value="long",required=false) java.lang.Double sourceLongitude, @RequestParam(value="q",required=false) java.lang.String locationQuery, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
logDebugInfo
protected void logDebugInfo(java.io.UnsupportedEncodingException e)
-
processLocation
protected void processLocation(@RequestParam(value="lat",required=false) java.lang.Double sourceLatitude, @RequestParam(value="long",required=false) java.lang.Double sourceLongitude, @RequestParam(value="q",required=false) java.lang.String locationQuery, org.springframework.ui.Model model, PointOfServiceData pointOfServiceData) throws java.io.UnsupportedEncodingException- Throws:
java.io.UnsupportedEncodingException
-
setUpMetaData
protected void setUpMetaData(org.springframework.ui.Model model, PointOfServiceData pointOfServiceData)
-
viewMap
@RequestMapping(value="/{storeCode:.*}/map", method=GET) public java.lang.String viewMap(@PathVariable("storeCode") java.lang.String storeCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
handleStoreNotFoundCase
protected java.lang.String handleStoreNotFoundCase(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
-
getStoreFinderPage
protected AbstractPageModel getStoreFinderPage() throws CMSItemNotFoundException
- Throws:
CMSItemNotFoundException
-
createMetaKeywords
protected java.lang.String createMetaKeywords(PointOfServiceData pointOfServiceData)
-
-