Class DefaultStoreFinderFacade
java.lang.Object
de.hybris.platform.commercefacades.storefinder.impl.DefaultStoreFinderFacade
- All Implemented Interfaces:
StoreFinderFacade
Default implementation of
StoreFinderFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllPointOfServices(PageableData pageableData) Gets the search page data object parametrized withPointOfServiceDataand contains all stores for current base storeprotected BaseStoreServiceprotected Converter<PointOfServiceModel,PointOfServiceData> Gets thePointOfServiceDatafor the given name that should be uniquegetPointOfServiceForNameAndPosition(String name, GeoPoint geoPoint) Gets thePointOfServiceDatafor the given name that should be unique.protected PointOfServiceServicegetPointsOfServiceForCountry(String countryIsoCode) Gets a list ofPointOfServiceDatafor all points of service in a given countrygetPointsOfServiceForRegion(String countryIsoCode, String regionIsoCode) Gets a list ofPointOfServiceDatafor all points of service in a given country and regionprotected Converter<StoreFinderSearchPageData<PointOfServiceDistanceData>,StoreFinderSearchPageData<PointOfServiceData>> protected Converter<StoreCountInfo,StoreCountData> Gets the store's counts per country and its regionsprotected StoreFinderService<PointOfServiceDistanceData,StoreFinderSearchPageData<PointOfServiceDistanceData>> locationSearch(String locationText, PageableData pageableData) Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given location text.locationSearch(String locationText, PageableData pageableData, double maxRadius) Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given location text.positionSearch(GeoPoint geoPoint, PageableData pageableData) Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given coordinatespositionSearch(GeoPoint geoPoint, PageableData pageableData, double maxRadius) Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given coordinatesvoidsetBaseStoreService(BaseStoreService baseStoreService) voidsetPointOfServiceConverter(Converter<PointOfServiceModel, PointOfServiceData> pointOfServiceConverter) voidsetPointOfServiceDistanceConverter(Converter<PointOfServiceDistanceData, PointOfServiceData> pointOfServiceDistanceConverter) voidsetPointOfServiceService(PointOfServiceService pointOfServiceService) voidsetSearchPagePointOfServiceDistanceConverter(Converter<StoreFinderSearchPageData<PointOfServiceDistanceData>, StoreFinderSearchPageData<PointOfServiceData>> searchPagePointOfServiceDistanceConverter) voidsetStoreCountConverter(Converter<StoreCountInfo, StoreCountData> storeCountConverter) voidsetStoreFinderService(StoreFinderService<PointOfServiceDistanceData, StoreFinderSearchPageData<PointOfServiceDistanceData>> storeFinderService)
-
Constructor Details
-
DefaultStoreFinderFacade
public DefaultStoreFinderFacade()
-
-
Method Details
-
getStoreFinderService
protected StoreFinderService<PointOfServiceDistanceData,StoreFinderSearchPageData<PointOfServiceDistanceData>> getStoreFinderService() -
setStoreFinderService
public void setStoreFinderService(StoreFinderService<PointOfServiceDistanceData, StoreFinderSearchPageData<PointOfServiceDistanceData>> storeFinderService) -
getBaseStoreService
-
setBaseStoreService
-
getPointOfServiceConverter
-
setPointOfServiceConverter
public void setPointOfServiceConverter(Converter<PointOfServiceModel, PointOfServiceData> pointOfServiceConverter) -
getSearchPagePointOfServiceDistanceConverter
protected Converter<StoreFinderSearchPageData<PointOfServiceDistanceData>,StoreFinderSearchPageData<PointOfServiceData>> getSearchPagePointOfServiceDistanceConverter() -
setSearchPagePointOfServiceDistanceConverter
public void setSearchPagePointOfServiceDistanceConverter(Converter<StoreFinderSearchPageData<PointOfServiceDistanceData>, StoreFinderSearchPageData<PointOfServiceData>> searchPagePointOfServiceDistanceConverter) -
getPointOfServiceDistanceConverter
protected Converter<PointOfServiceDistanceData,PointOfServiceData> getPointOfServiceDistanceConverter() -
setPointOfServiceDistanceConverter
public void setPointOfServiceDistanceConverter(Converter<PointOfServiceDistanceData, PointOfServiceData> pointOfServiceDistanceConverter) -
getPointOfServiceService
-
setPointOfServiceService
-
getStoreCountConverter
-
setStoreCountConverter
-
locationSearch
public StoreFinderSearchPageData<PointOfServiceData> locationSearch(String locationText, PageableData pageableData) Description copied from interface:StoreFinderFacadeGets the search page data object parametrized withPointOfServiceDataand contains location search results for the given location text.- Specified by:
locationSearchin interfaceStoreFinderFacade- Parameters:
locationText- the text that location search is performed forpageableData-PageableDataobject that contains basing information for search result set- Returns:
- locations found for the given parameters
-
locationSearch
public StoreFinderSearchPageData<PointOfServiceData> locationSearch(String locationText, PageableData pageableData, double maxRadius) Description copied from interface:StoreFinderFacadeGets the search page data object parametrized withPointOfServiceDataand contains location search results for the given location text.- Specified by:
locationSearchin interfaceStoreFinderFacade- Parameters:
locationText- the text that location search is performed forpageableData-PageableDataobject that contains basing information for search result setmaxRadius- the maximum radius from the location that results should be returned for.- Returns:
- locations found for the given parameters
-
positionSearch
public StoreFinderSearchPageData<PointOfServiceData> positionSearch(GeoPoint geoPoint, PageableData pageableData) Description copied from interface:StoreFinderFacadeGets the search page data object parametrized withPointOfServiceDataand contains location search results for the given coordinates- Specified by:
positionSearchin interfaceStoreFinderFacade- Parameters:
geoPoint- geographical point that search is performed forpageableData-PageableDataobject that contains basing information for search result set- Returns:
- locations found for the given parameters
-
positionSearch
public StoreFinderSearchPageData<PointOfServiceData> positionSearch(GeoPoint geoPoint, PageableData pageableData, double maxRadius) Description copied from interface:StoreFinderFacadeGets the search page data object parametrized withPointOfServiceDataand contains location search results for the given coordinates- Specified by:
positionSearchin interfaceStoreFinderFacade- Parameters:
geoPoint- geographical point that search is performed forpageableData-PageableDataobject that contains basing information for search result setmaxRadius- the maximum radius from the location that results should be returned for.- Returns:
- locations found for the given parameters
-
getPointOfServiceForName
Description copied from interface:StoreFinderFacadeGets thePointOfServiceDatafor the given name that should be unique- Specified by:
getPointOfServiceForNamein interfaceStoreFinderFacade- Parameters:
name- the point of service name- Returns:
PointOfServiceDatafor the given parameter
-
getPointOfServiceForNameAndPosition
Description copied from interface:StoreFinderFacadeGets thePointOfServiceDatafor the given name that should be unique. Additionally the distance between thePointOfServiceDataand given coordinates is calculated.- Specified by:
getPointOfServiceForNameAndPositionin interfaceStoreFinderFacade- Parameters:
name- - name of the requested point of servicegeoPoint- - geographical location of the origin point- Returns:
PointOfServiceDatafor the given parameter
-
getAllPointOfServices
public StoreFinderSearchPageData<PointOfServiceData> getAllPointOfServices(PageableData pageableData) Description copied from interface:StoreFinderFacadeGets the search page data object parametrized withPointOfServiceDataand contains all stores for current base store- Specified by:
getAllPointOfServicesin interfaceStoreFinderFacade- Parameters:
pageableData-PageableDataobject that contains basing information for search result set- Returns:
- locations found for the given parameters
-
getPointsOfServiceForCountry
Description copied from interface:StoreFinderFacadeGets a list ofPointOfServiceDatafor all points of service in a given country- Specified by:
getPointsOfServiceForCountryin interfaceStoreFinderFacade- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}- Returns:
- list of
PointOfServiceData
-
getPointsOfServiceForRegion
public List<PointOfServiceData> getPointsOfServiceForRegion(String countryIsoCode, String regionIsoCode) Description copied from interface:StoreFinderFacadeGets a list ofPointOfServiceDatafor all points of service in a given country and region- Specified by:
getPointsOfServiceForRegionin interfaceStoreFinderFacade- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}regionIsoCode- {@link RegionModel:ISOCODE}- Returns:
- list of
PointOfServiceData
-
getStoreCounts
Description copied from interface:StoreFinderFacadeGets the store's counts per country and its regions- Specified by:
getStoreCountsin interfaceStoreFinderFacade- Returns:
List<StoreCountData>
-