Class StoreLocatorPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
-
- de.hybris.platform.yacceleratorstorefront.controllers.pages.StoreLocatorPageController
-
@Controller @RequestMapping("/store-finder") public class StoreLocatorPageController extends AbstractSearchPageControllerController for store locator search and detail pages.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
AbstractSearchPageController.SearchResultsData<RESULT>, AbstractSearchPageController.ShowMode
-
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.AbstractSearchPageController
MAX_PAGE_LIMIT
-
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 StoreLocatorPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringfindStores(int page, AbstractSearchPageController.ShowMode showMode, java.lang.String sortCode, java.lang.String locationQuery, java.lang.Double latitude, java.lang.Double longitude, StoreFinderForm storeFinderForm, org.springframework.ui.Model model, org.springframework.validation.BindingResult bindingResult)java.lang.StringgetGoogleApiKey(javax.servlet.http.HttpServletRequest request)java.lang.StringgetGoogleApiVersion()protected AbstractPageModelgetStoreFinderPage()java.lang.StringgetStoreFinderPage(org.springframework.ui.Model model)protected intgetStoreLocatorPageSize()Get the default search page size.java.lang.StringsearchByCurrentPosition(int page, AbstractSearchPageController.ShowMode showMode, java.lang.String sortCode, StorePositionForm storePositionForm, org.springframework.ui.Model model)protected voidsetUpMetaData(java.lang.String locationQuery, org.springframework.ui.Model model)protected voidsetUpNoResultsErrorMessage(org.springframework.ui.Model model, StoreFinderSearchPageData<PointOfServiceData> searchResult)protected voidsetUpPageData(org.springframework.ui.Model model, StoreFinderSearchPageData<PointOfServiceData> searchResult, java.util.List<Breadcrumb> breadCrumbsList)protected voidsetUpPageForms(org.springframework.ui.Model model)protected voidsetUpPageTitle(java.lang.String searchText, org.springframework.ui.Model model)protected voidsetUpPosition(org.springframework.ui.Model model, GeoPoint geoPoint)protected voidsetUpSearchResultsForLocationQuery(java.lang.String locationQuery, PageableData pageableData, org.springframework.ui.Model model)protected voidsetUpSearchResultsForPosition(GeoPoint geoPoint, PageableData pageableData, org.springframework.ui.Model model)protected voidupdateLocalUserPreferences(GeoPoint geoPoint, java.lang.String location)-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
calculateShowAll, calculateShowPaged, convertBreadcrumbsToFacets, createEmptyPagination, createPageableData, encodeSearchPageData, existsFacetValueWithName, getMaxSearchPageSize, getSearchPageSize, isShowAllAllowed, populateModel, processFacetData, processFacetDatas, refineFacets
-
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)
-
getStoreFinderPage
@RequestMapping(method=GET) public java.lang.String getStoreFinderPage(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
findStores
@RequestMapping(method=GET, params="q") public java.lang.String findStores(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",required=false) java.lang.String sortCode, @RequestParam("q") java.lang.String locationQuery, @RequestParam(value="latitude",required=false) java.lang.Double latitude, @RequestParam(value="longitude",required=false) java.lang.Double longitude, StoreFinderForm storeFinderForm, org.springframework.ui.Model model, org.springframework.validation.BindingResult bindingResult) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
searchByCurrentPosition
@RequestMapping(value="/position", method={GET,POST}) public java.lang.String searchByCurrentPosition(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",required=false) java.lang.String sortCode, StorePositionForm storePositionForm, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
setUpMetaData
protected void setUpMetaData(java.lang.String locationQuery, org.springframework.ui.Model model)
-
setUpNoResultsErrorMessage
protected void setUpNoResultsErrorMessage(org.springframework.ui.Model model, StoreFinderSearchPageData<PointOfServiceData> searchResult)
-
setUpPageData
protected void setUpPageData(org.springframework.ui.Model model, StoreFinderSearchPageData<PointOfServiceData> searchResult, java.util.List<Breadcrumb> breadCrumbsList)
-
setUpSearchResultsForPosition
protected void setUpSearchResultsForPosition(GeoPoint geoPoint, PageableData pageableData, org.springframework.ui.Model model)
-
setUpPosition
protected void setUpPosition(org.springframework.ui.Model model, GeoPoint geoPoint)
-
setUpSearchResultsForLocationQuery
protected void setUpSearchResultsForLocationQuery(java.lang.String locationQuery, PageableData pageableData, org.springframework.ui.Model model)
-
updateLocalUserPreferences
protected void updateLocalUserPreferences(GeoPoint geoPoint, java.lang.String location)
-
setUpPageForms
protected void setUpPageForms(org.springframework.ui.Model model)
-
setUpPageTitle
protected void setUpPageTitle(java.lang.String searchText, org.springframework.ui.Model model)
-
getStoreFinderPage
protected AbstractPageModel getStoreFinderPage() throws CMSItemNotFoundException
- Throws:
CMSItemNotFoundException
-
getStoreLocatorPageSize
protected int getStoreLocatorPageSize()
Get the default search page size.- Returns:
- the number of results per page, 0 (zero) indicated 'default' size should be used
-
-