Class DefaultStoreFinderFacade
- java.lang.Object
-
- de.hybris.platform.commercefacades.storefinder.impl.DefaultStoreFinderFacade
-
- All Implemented Interfaces:
StoreFinderFacade
public class DefaultStoreFinderFacade extends java.lang.Object implements StoreFinderFacade
Default implementation ofStoreFinderFacade
-
-
Constructor Summary
Constructors Constructor Description DefaultStoreFinderFacade()
-
Method Summary
-
-
-
Method Detail
-
getStoreFinderService
protected StoreFinderService<PointOfServiceDistanceData,StoreFinderSearchPageData<PointOfServiceDistanceData>> getStoreFinderService()
-
setStoreFinderService
public void setStoreFinderService(StoreFinderService<PointOfServiceDistanceData,StoreFinderSearchPageData<PointOfServiceDistanceData>> storeFinderService)
-
getBaseStoreService
protected BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
-
getPointOfServiceConverter
protected Converter<PointOfServiceModel,PointOfServiceData> 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
protected PointOfServiceService getPointOfServiceService()
-
setPointOfServiceService
public void setPointOfServiceService(PointOfServiceService pointOfServiceService)
-
getStoreCountConverter
protected Converter<StoreCountInfo,StoreCountData> getStoreCountConverter()
-
setStoreCountConverter
public void setStoreCountConverter(Converter<StoreCountInfo,StoreCountData> storeCountConverter)
-
locationSearch
public StoreFinderSearchPageData<PointOfServiceData> locationSearch(java.lang.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(java.lang.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
public PointOfServiceData getPointOfServiceForName(java.lang.String name)
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
public PointOfServiceData getPointOfServiceForNameAndPosition(java.lang.String name, GeoPoint geoPoint)
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
public java.util.List<PointOfServiceData> getPointsOfServiceForCountry(java.lang.String countryIsoCode)
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 java.util.List<PointOfServiceData> getPointsOfServiceForRegion(java.lang.String countryIsoCode, java.lang.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
public java.util.List<StoreCountData> getStoreCounts()
Description copied from interface:StoreFinderFacadeGets the store's counts per country and its regions- Specified by:
getStoreCountsin interfaceStoreFinderFacade- Returns:
List
-
-