Class DefaultLocalStorePreferencesService
java.lang.Object
de.hybris.platform.acceleratorservices.store.impl.DefaultLocalStorePreferencesService
- All Implemented Interfaces:
LocalStorePreferencesService
public class DefaultLocalStorePreferencesService
extends Object
implements LocalStorePreferencesService
Default implementation of
LocalStorePreferencesService-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds given point of service to favoriteReturns all the points of service with the distance from the session's stored search location for the current base store.protected BaseStoreServiceprotected CustomerLocationServiceReturns user's favourite stores listprotected PageableDataprotected SessionServiceprotected StoreFinderServicevoidremoveFromFavoritePointOfServices(PointOfServiceModel pointOfServiceModel) Removes given point of service from favoritevoidsetBaseStoreService(BaseStoreService baseStoreService) voidsetCustomerLocationService(CustomerLocationService customerLocationService) voidsetFavoritesPointOfServices(List<PointOfServiceModel> storesList) Stores user's favourite stores listvoidsetSessionService(SessionService sessionService) voidsetStoreFinderService(StoreFinderService storeFinderService)
-
Field Details
-
SESSION_FAVOURITES_STORES_KEY
- See Also:
-
SESSION_NEAREST_STORES_KEY
- See Also:
-
-
Constructor Details
-
DefaultLocalStorePreferencesService
public DefaultLocalStorePreferencesService()
-
-
Method Details
-
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:
-
getFavoritePointOfServices
Description copied from interface:LocalStorePreferencesServiceReturns user's favourite stores list- Specified by:
getFavoritePointOfServicesin interfaceLocalStorePreferencesService- Returns:
- stores list
-
setFavoritesPointOfServices
Description copied from interface:LocalStorePreferencesServiceStores user's favourite stores list- Specified by:
setFavoritesPointOfServicesin interfaceLocalStorePreferencesService- Parameters:
storesList- - list of favourite stores
-
addToFavouritePointOfServices
Description copied from interface:LocalStorePreferencesServiceAdds given point of service to favorite- Specified by:
addToFavouritePointOfServicesin interfaceLocalStorePreferencesService- Parameters:
favorite- point of service to be added as favorite
-
removeFromFavoritePointOfServices
Description copied from interface:LocalStorePreferencesServiceRemoves given point of service from favorite- Specified by:
removeFromFavoritePointOfServicesin interfaceLocalStorePreferencesService- Parameters:
pointOfServiceModel- point of service to be removed as favorite
-
getPageableData
-
getSessionService
-
setSessionService
-
getBaseStoreService
-
setBaseStoreService
-
getStoreFinderService
-
setStoreFinderService
-
getCustomerLocationService
-
setCustomerLocationService
-