Class DefaultLocalStorePreferencesService
- java.lang.Object
-
- de.hybris.platform.acceleratorservices.store.impl.DefaultLocalStorePreferencesService
-
- All Implemented Interfaces:
LocalStorePreferencesService
public class DefaultLocalStorePreferencesService extends java.lang.Object implements LocalStorePreferencesService
Default implementation ofLocalStorePreferencesService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSESSION_FAVOURITES_STORES_KEYstatic java.lang.StringSESSION_NEAREST_STORES_KEY
-
Constructor Summary
Constructors Constructor Description DefaultLocalStorePreferencesService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToFavouritePointOfServices(PointOfServiceModel favorite)Adds given point of service to favoritejava.util.List<PointOfServiceDistanceData>getAllPointsOfService()Returns all the points of service with the distance from the session's stored search location for the current base store.protected BaseStoreServicegetBaseStoreService()protected CustomerLocationServicegetCustomerLocationService()java.util.List<PointOfServiceModel>getFavoritePointOfServices()Returns user's favourite stores listprotected PageableDatagetPageableData()protected SessionServicegetSessionService()protected StoreFinderServicegetStoreFinderService()voidremoveFromFavoritePointOfServices(PointOfServiceModel pointOfServiceModel)Removes given point of service from favoritevoidsetBaseStoreService(BaseStoreService baseStoreService)voidsetCustomerLocationService(CustomerLocationService customerLocationService)voidsetFavoritesPointOfServices(java.util.List<PointOfServiceModel> storesList)Stores user's favourite stores listvoidsetSessionService(SessionService sessionService)voidsetStoreFinderService(StoreFinderService storeFinderService)
-
-
-
Field Detail
-
SESSION_FAVOURITES_STORES_KEY
public static final java.lang.String SESSION_FAVOURITES_STORES_KEY
- See Also:
- Constant Field Values
-
SESSION_NEAREST_STORES_KEY
public static final java.lang.String SESSION_NEAREST_STORES_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllPointsOfService
public java.util.List<PointOfServiceDistanceData> getAllPointsOfService()
Description copied from interface:LocalStorePreferencesServiceReturns all the points of service with the distance from the session's stored search location for the current base store.- Specified by:
getAllPointsOfServicein interfaceLocalStorePreferencesService- Returns:
- session cached list of points of service.
- See Also:
StoreFinderService.positionSearch(de.hybris.platform.store.BaseStoreModel, de.hybris.platform.commerceservices.store.data.GeoPoint, de.hybris.platform.commerceservices.search.pagedata.PageableData)
-
getFavoritePointOfServices
public java.util.List<PointOfServiceModel> getFavoritePointOfServices()
Description copied from interface:LocalStorePreferencesServiceReturns user's favourite stores list- Specified by:
getFavoritePointOfServicesin interfaceLocalStorePreferencesService- Returns:
- stores list
-
setFavoritesPointOfServices
public void setFavoritesPointOfServices(java.util.List<PointOfServiceModel> storesList)
Description copied from interface:LocalStorePreferencesServiceStores user's favourite stores list- Specified by:
setFavoritesPointOfServicesin interfaceLocalStorePreferencesService- Parameters:
storesList- - list of favourite stores
-
addToFavouritePointOfServices
public void addToFavouritePointOfServices(PointOfServiceModel favorite)
Description copied from interface:LocalStorePreferencesServiceAdds given point of service to favorite- Specified by:
addToFavouritePointOfServicesin interfaceLocalStorePreferencesService
-
removeFromFavoritePointOfServices
public void removeFromFavoritePointOfServices(PointOfServiceModel pointOfServiceModel)
Description copied from interface:LocalStorePreferencesServiceRemoves given point of service from favorite- Specified by:
removeFromFavoritePointOfServicesin interfaceLocalStorePreferencesService
-
getPageableData
protected PageableData getPageableData()
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getBaseStoreService
protected BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
-
getStoreFinderService
protected StoreFinderService getStoreFinderService()
-
setStoreFinderService
public void setStoreFinderService(StoreFinderService storeFinderService)
-
getCustomerLocationService
protected CustomerLocationService getCustomerLocationService()
-
setCustomerLocationService
public void setCustomerLocationService(CustomerLocationService customerLocationService)
-
-