Interface StoreFinderFacade
- All Known Implementing Classes:
DefaultStoreFinderFacade
public interface StoreFinderFacade
Store finder facade. It is used for retrieving data for store finder related data.
-
Method Summary
Modifier and TypeMethodDescriptiongetAllPointOfServices(PageableData pageableData) Gets the search page data object parametrized withPointOfServiceDataand contains all stores for current base storeGets thePointOfServiceDatafor the given name that should be uniquegetPointOfServiceForNameAndPosition(String name, GeoPoint geoPoint) Gets thePointOfServiceDatafor the given name that should be unique.getPointsOfServiceForCountry(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 regionGets the store's counts per country and its regionslocationSearch(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 coordinates
-
Method Details
-
locationSearch
StoreFinderSearchPageData<PointOfServiceData> locationSearch(String locationText, PageableData pageableData) Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given location text.- 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
StoreFinderSearchPageData<PointOfServiceData> locationSearch(String locationText, PageableData pageableData, double maxRadius) Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given location text.- 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
StoreFinderSearchPageData<PointOfServiceData> positionSearch(GeoPoint geoPoint, PageableData pageableData) Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given coordinates- 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
StoreFinderSearchPageData<PointOfServiceData> positionSearch(GeoPoint geoPoint, PageableData pageableData, double maxRadius) Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given coordinates- 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
Gets thePointOfServiceDatafor the given name that should be unique- Parameters:
name- the point of service name- Returns:
PointOfServiceDatafor the given parameter
-
getPointOfServiceForNameAndPosition
Gets thePointOfServiceDatafor the given name that should be unique. Additionally the distance between thePointOfServiceDataand given coordinates is calculated.- Parameters:
name- - name of the requested point of servicegeoPoint- - geographical location of the origin point- Returns:
PointOfServiceDatafor the given parameter
-
getAllPointOfServices
Gets the search page data object parametrized withPointOfServiceDataand contains all stores for current base store- Parameters:
pageableData-PageableDataobject that contains basing information for search result set- Returns:
- locations found for the given parameters
-
getStoreCounts
List<StoreCountData> getStoreCounts()Gets the store's counts per country and its regions- Returns:
List<StoreCountData>
-
getPointsOfServiceForCountry
Gets a list ofPointOfServiceDatafor all points of service in a given country- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}- Returns:
- list of
PointOfServiceData
-
getPointsOfServiceForRegion
Gets a list ofPointOfServiceDatafor all points of service in a given country and region- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}regionIsoCode- {@link RegionModel:ISOCODE}- Returns:
- list of
PointOfServiceData
-