Class DefaultStoreLocatorFacade
- java.lang.Object
-
- de.hybris.platform.commercefacades.storelocator.impl.DefaultStoreLocatorFacade
-
- All Implemented Interfaces:
StoreLocatorFacade
public class DefaultStoreLocatorFacade extends java.lang.Object implements StoreLocatorFacade
Default implementation forStoreLocatorFacade
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description DefaultStoreLocatorFacade()
-
Method Summary
-
-
-
Method Detail
-
getLocationsForQuery
public Map getLocationsForQuery(java.lang.String searchTerm, int limit) throws MapServiceException
Description copied from interface:StoreLocatorFacadeGets the locations for query. Returns locations for the given query string that can be postal code or town name. Locations number is limited to the given value.- Specified by:
getLocationsForQueryin interfaceStoreLocatorFacade- Parameters:
searchTerm- the search term to look locations for. Can be postal code or town namelimit- the maximum number of returned results- Returns:
- the map of locations
- Throws:
MapServiceException- the map service exception
-
sortMapLocations
protected java.util.List<Location> sortMapLocations(int limit, java.util.List<Map> locations)
-
findAllMaps
protected java.util.List<Map> findAllMaps(java.lang.String languageCode, java.lang.String searchTerm, int limit)
-
getPOSForName
public PointOfServiceData getPOSForName(java.lang.String posName) throws LocationServiceException
Description copied from interface:StoreLocatorFacadeGets the point of service for name that is unique.- Specified by:
getPOSForNamein interfaceStoreLocatorFacade- Parameters:
posName- the pos name- Returns:
- the found point of service
- Throws:
LocationServiceException- ifLocationfor name can not be found
-
getPOSForLocation
public PointOfServiceData getPOSForLocation(Location location)
Description copied from interface:StoreLocatorFacadeGets the point of service for the given location. If location is distance aware also fills information about distance.- Specified by:
getPOSForLocationin interfaceStoreLocatorFacade- Parameters:
location- the location- Returns:
- the point of service for location
-
getCommonI18NService
protected CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService siteService)
-
getPointOfServiceService
protected PointOfServiceService getPointOfServiceService()
-
setPointOfServiceService
public void setPointOfServiceService(PointOfServiceService pointOfServiceService)
-
getMapService
protected MapService getMapService()
-
setMapService
public void setMapService(MapService mapService)
-
getPointOfServiceConverter
protected Converter<PointOfServiceModel,PointOfServiceData> getPointOfServiceConverter()
-
setPointOfServiceConverter
public void setPointOfServiceConverter(Converter<PointOfServiceModel,PointOfServiceData> pointOfServiceConverter)
-
getDistanceHelper
protected DistanceHelper getDistanceHelper()
-
setDistanceHelper
public void setDistanceHelper(DistanceHelper distanceHelper)
-
setLocationService
public void setLocationService(LocationService<Location> locationService)
-
getLocationMapService
public LocationMapService getLocationMapService()
-
setLocationMapService
public void setLocationMapService(LocationMapService locationMapService)
-
getLocationService
protected LocationService<Location> getLocationService()
-
-