Class DefaultStoreLocatorFacade
java.lang.Object
de.hybris.platform.commercefacades.storelocator.impl.DefaultStoreLocatorFacade
- All Implemented Interfaces:
StoreLocatorFacade
Default implementation for
StoreLocatorFacade-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllMaps(String languageCode, String searchTerm, int limit) protected GPSfindCenterPosition(List<Map> locations) protected BaseSiteServiceprotected CommonI18NServiceprotected DistanceHelperprotected LocationService<Location>getLocationsForQuery(String searchTerm, int limit) Gets the locations for query.protected MapServiceprotected Converter<PointOfServiceModel,PointOfServiceData> protected PointOfServiceServicegetPOSForLocation(Location location) Gets the point of service for the given location.getPOSForName(String posName) Gets the point of service for name that is unique.voidsetBaseSiteService(BaseSiteService siteService) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetDistanceHelper(DistanceHelper distanceHelper) voidsetLocationMapService(LocationMapService locationMapService) voidsetLocationService(LocationService<Location> locationService) voidsetMapService(MapService mapService) voidsetPointOfServiceConverter(Converter<PointOfServiceModel, PointOfServiceData> pointOfServiceConverter) voidsetPointOfServiceService(PointOfServiceService pointOfServiceService) sortMapLocations(int limit, List<Map> locations)
-
Field Details
-
LOG
protected static final org.apache.log4j.Logger LOG
-
-
Constructor Details
-
DefaultStoreLocatorFacade
public DefaultStoreLocatorFacade()
-
-
Method Details
-
getLocationsForQuery
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
-
findAllMaps
-
findCenterPosition
-
getPOSForName
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
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
-
setCommonI18NService
-
getBaseSiteService
-
setBaseSiteService
-
getPointOfServiceService
-
setPointOfServiceService
-
getMapService
-
setMapService
-
getPointOfServiceConverter
-
setPointOfServiceConverter
public void setPointOfServiceConverter(Converter<PointOfServiceModel, PointOfServiceData> pointOfServiceConverter) -
getDistanceHelper
-
setDistanceHelper
-
setLocationService
-
getLocationMapService
-
setLocationMapService
-
getLocationService
-