Package de.hybris.platform.storelocator
Interface PointOfServiceDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
AcceleratorPointOfServiceDao,DefaultPointOfServiceDao
public interface PointOfServiceDao extends Dao
Data Access Object dealing withPointOfServicetype
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<PointOfServiceModel>getAllGeocodedPOS(GPS center, double radius)return all POS items from the given neighborhoodjava.util.Collection<PointOfServiceModel>getAllGeocodedPOS(GPS center, double radius, BaseStoreModel baseStore)return all POS items from the given neighborhood belonging to given storejava.util.Collection<PointOfServiceModel>getAllPos()return all POS itemsjava.util.Map<CountryModel,java.lang.Integer>getPointOfServiceCountPerCountryForStore(BaseStoreModel baseStore)Get the count of PointOfServiceModel per countryCountryModelgiven aBaseStoreModeljava.util.Map<RegionModel,java.lang.Integer>getPointOfServiceRegionCountForACountryAndStore(CountryModel country, BaseStoreModel baseStore)Get the count ofPointOfServiceModelin each region for a given countryCountryModelandBaseStoreModelPointOfServiceModelgetPosByName(java.lang.String name)Returns a Point of Service with the name givenjava.util.List<PointOfServiceModel>getPosForCountry(java.lang.String countryIsoCode, BaseStoreModel baseStore)Gets a list ofPointOfServiceModelin a given countryjava.util.List<PointOfServiceModel>getPosForRegion(java.lang.String countryIsoCode, java.lang.String regionIsoCode, BaseStoreModel baseStore)Gets a list ofPointOfServiceModelin a given country and regionjava.util.Collection<PointOfServiceModel>getPosToGeocode()Get collection of PointOfServiceModel that need to be geocoded.java.util.Collection<PointOfServiceModel>getPosToGeocode(int size)Get a size limited collection of PointOfServiceModel that need to be geocoded.
-
-
-
Method Detail
-
getAllPos
java.util.Collection<PointOfServiceModel> getAllPos()
return all POS items- Returns:
PointOfServiceModel
-
getAllGeocodedPOS
java.util.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
java.util.Collection<PointOfServiceModel> getAllGeocodedPOS(GPS center, double radius)
return all POS items from the given neighborhood- Parameters:
center- of neighborhoodradius- of neighborhood in kilometers- Returns:
PointOfServiceModel- Throws:
PointOfServiceDaoException
-
getPosByName
PointOfServiceModel getPosByName(java.lang.String name)
Returns a Point of Service with the name given- Parameters:
name-- Returns:
PointOfServiceModel- Throws:
PointOfServiceDaoException
-
getPosToGeocode
java.util.Collection<PointOfServiceModel> getPosToGeocode(int size)
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
java.util.Collection<PointOfServiceModel> getPosToGeocode()
Get collection of PointOfServiceModel that need to be geocoded.- Returns:
- Collection of
PointOfServiceModel
-
getPointOfServiceCountPerCountryForStore
java.util.Map<CountryModel,java.lang.Integer> getPointOfServiceCountPerCountryForStore(BaseStoreModel baseStore)
Get the count of PointOfServiceModel per countryCountryModelgiven aBaseStoreModel- Parameters:
baseStore- givenBaseStoreModel- Returns:
- a map representing countries and store
PointOfServiceModelcounts
-
getPointOfServiceRegionCountForACountryAndStore
java.util.Map<RegionModel,java.lang.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
java.util.List<PointOfServiceModel> getPosForCountry(java.lang.String countryIsoCode, BaseStoreModel baseStore)
Gets a list ofPointOfServiceModelin a given country- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-
getPosForRegion
java.util.List<PointOfServiceModel> getPosForRegion(java.lang.String countryIsoCode, java.lang.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
-
-