Interface StoreFinderFacade
-
- All Known Implementing Classes:
DefaultStoreFinderFacade
public interface StoreFinderFacadeStore finder facade. It is used for retrieving data for store finder related data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StoreFinderSearchPageData<PointOfServiceData>getAllPointOfServices(PageableData pageableData)Gets the search page data object parametrized withPointOfServiceDataand contains all stores for current base storePointOfServiceDatagetPointOfServiceForName(java.lang.String name)Gets thePointOfServiceDatafor the given name that should be uniquePointOfServiceDatagetPointOfServiceForNameAndPosition(java.lang.String name, GeoPoint geoPoint)Gets thePointOfServiceDatafor the given name that should be unique.java.util.List<PointOfServiceData>getPointsOfServiceForCountry(java.lang.String countryIsoCode)Gets a list ofPointOfServiceDatafor all points of service in a given countryjava.util.List<PointOfServiceData>getPointsOfServiceForRegion(java.lang.String countryIsoCode, java.lang.String regionIsoCode)Gets a list ofPointOfServiceDatafor all points of service in a given country and regionjava.util.List<StoreCountData>getStoreCounts()Gets the store's counts per country and its regionsStoreFinderSearchPageData<PointOfServiceData>locationSearch(java.lang.String locationText, PageableData pageableData)Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given location text.StoreFinderSearchPageData<PointOfServiceData>locationSearch(java.lang.String locationText, PageableData pageableData, double maxRadius)Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given location text.StoreFinderSearchPageData<PointOfServiceData>positionSearch(GeoPoint geoPoint, PageableData pageableData)Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given coordinatesStoreFinderSearchPageData<PointOfServiceData>positionSearch(GeoPoint geoPoint, PageableData pageableData, double maxRadius)Gets the search page data object parametrized withPointOfServiceDataand contains location search results for the given coordinates
-
-
-
Method Detail
-
locationSearch
StoreFinderSearchPageData<PointOfServiceData> locationSearch(java.lang.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(java.lang.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
PointOfServiceData getPointOfServiceForName(java.lang.String name)
Gets thePointOfServiceDatafor the given name that should be unique- Parameters:
name- the point of service name- Returns:
PointOfServiceDatafor the given parameter
-
getPointOfServiceForNameAndPosition
PointOfServiceData getPointOfServiceForNameAndPosition(java.lang.String name, GeoPoint geoPoint)
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
StoreFinderSearchPageData<PointOfServiceData> getAllPointOfServices(PageableData pageableData)
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
java.util.List<StoreCountData> getStoreCounts()
Gets the store's counts per country and its regions- Returns:
List
-
getPointsOfServiceForCountry
java.util.List<PointOfServiceData> getPointsOfServiceForCountry(java.lang.String countryIsoCode)
Gets a list ofPointOfServiceDatafor all points of service in a given country- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}- Returns:
- list of
PointOfServiceData
-
getPointsOfServiceForRegion
java.util.List<PointOfServiceData> getPointsOfServiceForRegion(java.lang.String countryIsoCode, java.lang.String regionIsoCode)
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
-
-