Class DefaultPointOfServiceDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.storelocator.impl.DefaultPointOfServiceDao
- All Implemented Interfaces:
Dao,PointOfServiceDao
- Direct Known Subclasses:
AcceleratorPointOfServiceDao
DefaultPointOfServiceDao is the default implementation for PointOfServiceDao.
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FlexibleSearchQuerybuildQuery(GPS center, double radius) protected FlexibleSearchQuerybuildQuery(GPS center, double radius, BaseStoreModel baseStore) getAllGeocodedPOS(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.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultPointOfServiceDao
public DefaultPointOfServiceDao()
-
-
Method Details
-
getAllPos
Description copied from interface:PointOfServiceDaoreturn all POS items- Specified by:
getAllPosin interfacePointOfServiceDao- Returns:
PointOfServiceModel
-
getPosByName
Description copied from interface:PointOfServiceDaoReturns a Point of Service with the name given- Specified by:
getPosByNamein interfacePointOfServiceDao- Returns:
PointOfServiceModel
-
getPosToGeocode
Description copied from interface:PointOfServiceDaoGet a size limited collection of PointOfServiceModel that need to be geocoded.- Specified by:
getPosToGeocodein interfacePointOfServiceDao- Parameters:
size- determines how many entries are taken- Returns:
- Collection of
PointOfServiceModel
-
getPosToGeocode
Description copied from interface:PointOfServiceDaoGet collection of PointOfServiceModel that need to be geocoded.- Specified by:
getPosToGeocodein interfacePointOfServiceDao- Returns:
- Collection of
PointOfServiceModel
-
getAllGeocodedPOS
Description copied from interface:PointOfServiceDaoreturn all POS items from the given neighborhood- Specified by:
getAllGeocodedPOSin interfacePointOfServiceDao- Parameters:
center- of neighborhoodradius- of neighborhood in kilometers- Returns:
PointOfServiceModel
-
getAllGeocodedPOS
public Collection<PointOfServiceModel> getAllGeocodedPOS(GPS center, double radius, BaseStoreModel baseStore) Description copied from interface:PointOfServiceDaoreturn all POS items from the given neighborhood belonging to given store- Specified by:
getAllGeocodedPOSin interfacePointOfServiceDao- Parameters:
center- of neighborhoodradius- of neighborhood in kilometersbaseStore-BaseStoreModel- Returns:
PointOfServiceModel
-
getPointOfServiceCountPerCountryForStore
Description copied from interface:PointOfServiceDaoGet the count of PointOfServiceModel per countryCountryModelgiven aBaseStoreModel- Specified by:
getPointOfServiceCountPerCountryForStorein interfacePointOfServiceDao- Parameters:
baseStore- givenBaseStoreModel- Returns:
- a map representing countries and store
PointOfServiceModelcounts
-
getPointOfServiceRegionCountForACountryAndStore
public Map<RegionModel,Integer> getPointOfServiceRegionCountForACountryAndStore(CountryModel country, BaseStoreModel baseStore) Description copied from interface:PointOfServiceDaoGet the count ofPointOfServiceModelin each region for a given countryCountryModelandBaseStoreModel- Specified by:
getPointOfServiceRegionCountForACountryAndStorein interfacePointOfServiceDao- Parameters:
country- givenCountryModelbaseStore- givenBaseStoreModel- Returns:
- a map representing store
PointOfServiceModelcounts per regionRegionModelfor the given countryCountryModelandBaseStoreModel
-
getPosForCountry
Description copied from interface:PointOfServiceDaoGets a list ofPointOfServiceModelin a given country- Specified by:
getPosForCountryin interfacePointOfServiceDao- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-
getPosForRegion
public List<PointOfServiceModel> getPosForRegion(String countryIsoCode, String regionIsoCode, BaseStoreModel baseStore) Description copied from interface:PointOfServiceDaoGets a list ofPointOfServiceModelin a given country and region- Specified by:
getPosForRegionin interfacePointOfServiceDao- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}regionIsoCode- {@link RegionModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-
buildQuery
- Parameters:
center-radius-- Returns:
- FlexibleSearchQuery
- Throws:
PointOfServiceDaoException
-
buildQuery
-