Class StorePageController

    • Constructor Detail

      • StorePageController

        public StorePageController()
    • 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)
      • createMetaKeywords

        protected java.lang.String createMetaKeywords​(PointOfServiceData pointOfServiceData)