Interface LocalStorePreferencesService
-
- All Known Implementing Classes:
DefaultLocalStorePreferencesService
public interface LocalStorePreferencesServiceService relating to selecting a favourite local store
-
-
Method Summary
All Methods Instance Methods Abstract 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.java.util.List<PointOfServiceModel>getFavoritePointOfServices()Returns user's favourite stores listvoidremoveFromFavoritePointOfServices(PointOfServiceModel pointOfServiceModel)Removes given point of service from favoritevoidsetFavoritesPointOfServices(java.util.List<PointOfServiceModel> storesList)Stores user's favourite stores list
-
-
-
Method Detail
-
getAllPointsOfService
java.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.- 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
java.util.List<PointOfServiceModel> getFavoritePointOfServices()
Returns user's favourite stores list- Returns:
- stores list
-
setFavoritesPointOfServices
void setFavoritesPointOfServices(java.util.List<PointOfServiceModel> storesList)
Stores user's favourite stores list- Parameters:
storesList- - list of favourite stores
-
addToFavouritePointOfServices
void addToFavouritePointOfServices(PointOfServiceModel favorite)
Adds given point of service to favorite- Parameters:
favorite-
-
removeFromFavoritePointOfServices
void removeFromFavoritePointOfServices(PointOfServiceModel pointOfServiceModel)
Removes given point of service from favorite- Parameters:
pointOfServiceModel-
-
-