Package de.hybris.platform.storelocator
Interface PointOfServiceDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
AcceleratorPointOfServiceDao,DefaultPointOfServiceDao
Data Access Object dealing with
PointOfService type-
Method Summary
Modifier and TypeMethodDescriptiongetAllGeocodedPOS(GPS center, double radius) return all POS items from the given neighborhoodgetAllGeocodedPOS(GPS center, double radius, BaseStoreModel baseStore) return all POS items from the given neighborhood belonging to given storereturn all POS itemsGet the count of PointOfServiceModel per countryCountryModelgiven aBaseStoreModelgetPointOfServiceRegionCountForACountryAndStore(CountryModel country, BaseStoreModel baseStore) Get the count ofPointOfServiceModelin each region for a given countryCountryModelandBaseStoreModelgetPosByName(String name) Returns a Point of Service with the name givengetPosForCountry(String countryIsoCode, BaseStoreModel baseStore) Gets a list ofPointOfServiceModelin a given countrygetPosForRegion(String countryIsoCode, String regionIsoCode, BaseStoreModel baseStore) Gets a list ofPointOfServiceModelin a given country and regionGet collection of PointOfServiceModel that need to be geocoded.getPosToGeocode(int size) Get a size limited collection of PointOfServiceModel that need to be geocoded.
-
Method Details
-
getAllPos
Collection<PointOfServiceModel> getAllPos()return all POS items- Returns:
PointOfServiceModel
-
getAllGeocodedPOS
Collection<PointOfServiceModel> getAllGeocodedPOS(GPS center, double radius, BaseStoreModel baseStore) return all POS items from the given neighborhood belonging to given store- Parameters:
center- of neighborhoodradius- of neighborhood in kilometersbaseStore-BaseStoreModel- Returns:
PointOfServiceModel- Throws:
PointOfServiceDaoException
-
getAllGeocodedPOS
return all POS items from the given neighborhood- Parameters:
center- of neighborhoodradius- of neighborhood in kilometers- Returns:
PointOfServiceModel- Throws:
PointOfServiceDaoException
-
getPosByName
Returns a Point of Service with the name given- Parameters:
name-- Returns:
PointOfServiceModel- Throws:
PointOfServiceDaoException
-
getPosToGeocode
Get a size limited collection of PointOfServiceModel that need to be geocoded.- Parameters:
size- determines how many entries are taken- Returns:
- Collection of
PointOfServiceModel - Throws:
PointOfServiceDaoException
-
getPosToGeocode
Collection<PointOfServiceModel> getPosToGeocode()Get collection of PointOfServiceModel that need to be geocoded.- Returns:
- Collection of
PointOfServiceModel
-
getPointOfServiceCountPerCountryForStore
Get the count of PointOfServiceModel per countryCountryModelgiven aBaseStoreModel- Parameters:
baseStore- givenBaseStoreModel- Returns:
- a map representing countries and store
PointOfServiceModelcounts
-
getPointOfServiceRegionCountForACountryAndStore
Map<RegionModel,Integer> getPointOfServiceRegionCountForACountryAndStore(CountryModel country, BaseStoreModel baseStore) Get the count ofPointOfServiceModelin each region for a given countryCountryModelandBaseStoreModel- Parameters:
country- givenCountryModelbaseStore- givenBaseStoreModel- Returns:
- a map representing store
PointOfServiceModelcounts per regionRegionModelfor the given countryCountryModelandBaseStoreModel
-
getPosForCountry
Gets a list ofPointOfServiceModelin a given country- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-
getPosForRegion
List<PointOfServiceModel> getPosForRegion(String countryIsoCode, String regionIsoCode, BaseStoreModel baseStore) Gets a list ofPointOfServiceModelin a given country and region- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}regionIsoCode- {@link RegionModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-