Class PointOfServiceDistancePopulator
- java.lang.Object
-
- de.hybris.platform.acceleratorfacades.storelocator.populators.PointOfServiceDistancePopulator
-
- All Implemented Interfaces:
Populator<PointOfServiceModel,PointOfServiceData>
public class PointOfServiceDistancePopulator extends java.lang.Object implements Populator<PointOfServiceModel,PointOfServiceData>
Populate distanceKm and formattedDistance attributes forPointOfServiceDatabase onPointOfServiceModel
-
-
Constructor Summary
Constructors Constructor Description PointOfServiceDistancePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateFormattedDistance(PointOfServiceModel pointOfServiceModel, PointOfServiceData pointOfServiceData)protected CustomerLocationServicegetCustomerLocationService()protected DistanceHelpergetDistanceHelper()voidpopulate(PointOfServiceModel source, PointOfServiceData target)Populate the target instance with values from the source instance.voidsetCustomerLocationService(CustomerLocationService customerLocationService)voidsetDistanceHelper(DistanceHelper distanceHelper)
-
-
-
Method Detail
-
populate
public void populate(PointOfServiceModel source, PointOfServiceData target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<PointOfServiceModel,PointOfServiceData>- Parameters:
source- the source objecttarget- the target to fill
-
calculateFormattedDistance
protected void calculateFormattedDistance(PointOfServiceModel pointOfServiceModel, PointOfServiceData pointOfServiceData)
-
getCustomerLocationService
protected CustomerLocationService getCustomerLocationService()
-
setCustomerLocationService
public void setCustomerLocationService(CustomerLocationService customerLocationService)
-
getDistanceHelper
protected DistanceHelper getDistanceHelper()
-
setDistanceHelper
public void setDistanceHelper(DistanceHelper distanceHelper)
-
-