Interface StoreFinderService<ITEM extends PointOfServiceDistanceData,RESULT extends StoreFinderSearchPageData<ITEM>>
-
- Type Parameters:
ITEM- distance to point of serviceRESULT- search page result
- All Known Implementing Classes:
DefaultStoreFinderService
public interface StoreFinderService<ITEM extends PointOfServiceDistanceData,RESULT extends StoreFinderSearchPageData<ITEM>>Store finder service. It is used for retrieving data for store finder related data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RESULTgetAllPos(BaseStoreModel baseStore, PageableData pageableData)Gets the locations retrieved basing on the given arguments.java.util.List<PointOfServiceModel>getAllPosForCountry(java.lang.String countryIsoCode, BaseStoreModel baseStore)Gets a list ofPointOfServiceModelfor all points of service in a given countryjava.util.List<PointOfServiceModel>getAllPosForRegion(java.lang.String countryIsoCode, java.lang.String regionIsoCode, BaseStoreModel baseStore)Gets a list ofPointOfServiceModelfor all points of service in a given country and regionITEMgetPointOfServiceDistanceForName(BaseStoreModel baseStore, java.lang.String name, GeoPoint geoPoint)Gets the location for the given name that should be unique.PointOfServiceModelgetPointOfServiceForName(BaseStoreModel baseStore, java.lang.String name)Gets thePointOfServiceModelfor the given name that should be uniqueRESULTlocationSearch(BaseStoreModel baseStore, java.lang.String locationText, PageableData pageableData)Gets the locations retrieved based on the given arguments.RESULTlocationSearch(BaseStoreModel baseStore, java.lang.String locationText, PageableData pageableData, double maxRadius)Gets the locations retrieved based on the given arguments.RESULTpositionSearch(BaseStoreModel baseStore, GeoPoint geoPoint, PageableData pageableData)Gets the locations retrieved basing on the given arguments.RESULTpositionSearch(BaseStoreModel baseStore, GeoPoint geoPoint, PageableData pageableData, double maxRadius)Gets the locations retrieved basing on the given arguments.
-
-
-
Method Detail
-
locationSearch
RESULT locationSearch(BaseStoreModel baseStore, java.lang.String locationText, PageableData pageableData)
Gets the locations retrieved based on the given arguments.- Parameters:
baseStore-BaseStoreModelinstance that returned locations belongs tolocationText- text that will be used for locations searchpageableData-PageableDataobject that contains basing information for search result set- Returns:
- locations found for the given parameters
-
locationSearch
RESULT locationSearch(BaseStoreModel baseStore, java.lang.String locationText, PageableData pageableData, double maxRadius)
Gets the locations retrieved based on the given arguments.- Parameters:
baseStore-BaseStoreModelinstance that returned locations belongs tolocationText- text that will be used for locations searchpageableData-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
RESULT positionSearch(BaseStoreModel baseStore, GeoPoint geoPoint, PageableData pageableData)
Gets the locations retrieved basing on the given arguments.- Parameters:
baseStore-BaseStoreModelinstance that returned locations belongs togeoPoint- geographical point that search is performed forpageableData-PageableDataobject that contains basing information for search result set- Returns:
- locations found for the given parameters
-
positionSearch
RESULT positionSearch(BaseStoreModel baseStore, GeoPoint geoPoint, PageableData pageableData, double maxRadius)
Gets the locations retrieved basing on the given arguments.- Parameters:
baseStore-BaseStoreModelinstance that returned locations belongs togeoPoint- 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
PointOfServiceModel getPointOfServiceForName(BaseStoreModel baseStore, java.lang.String name)
Gets thePointOfServiceModelfor the given name that should be unique- Parameters:
baseStore-BaseStoreModelinstance that returned location belongs toname- the requested point of service name- Returns:
PointOfServiceModelfor the given parameter
-
getPointOfServiceDistanceForName
ITEM getPointOfServiceDistanceForName(BaseStoreModel baseStore, java.lang.String name, GeoPoint geoPoint)
Gets the location for the given name that should be unique. Additionally the distance between the location and given coordinates is calculated.- Parameters:
baseStore-BaseStoreModelinstance that returned location belongs toname- name of the requested point of servicegeoPoint- geographical point of the origin point- Returns:
- location for the given parameter
-
getAllPos
RESULT getAllPos(BaseStoreModel baseStore, PageableData pageableData)
Gets the locations retrieved basing on the given arguments.- Parameters:
baseStore-BaseStoreModelinstance that returned locations belongs topageableData-PageableDataobject that contains basing information for search result set- Returns:
- locations found for the given parameters
-
getAllPosForCountry
java.util.List<PointOfServiceModel> getAllPosForCountry(java.lang.String countryIsoCode, BaseStoreModel baseStore)
Gets a list ofPointOfServiceModelfor all points of service in a given country- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-
getAllPosForRegion
java.util.List<PointOfServiceModel> getAllPosForRegion(java.lang.String countryIsoCode, java.lang.String regionIsoCode, BaseStoreModel baseStore)
Gets a list ofPointOfServiceModelfor all points of service in a given country and region- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}regionIsoCode- {@link RegionModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-
-