Class PointOfServiceDistancePopulator
java.lang.Object
de.hybris.platform.acceleratorfacades.storelocator.populators.PointOfServiceDistancePopulator
- All Implemented Interfaces:
Populator<PointOfServiceModel,PointOfServiceData>
public class PointOfServiceDistancePopulator
extends Object
implements Populator<PointOfServiceModel,PointOfServiceData>
Populate distanceKm and formattedDistance attributes for
PointOfServiceData base on
PointOfServiceModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalculateFormattedDistance(PointOfServiceModel pointOfServiceModel, PointOfServiceData pointOfServiceData) protected CustomerLocationServiceprotected DistanceHelpervoidpopulate(PointOfServiceModel source, PointOfServiceData target) Populate the target instance with values from the source instance.voidsetCustomerLocationService(CustomerLocationService customerLocationService) voidsetDistanceHelper(DistanceHelper distanceHelper)
-
Constructor Details
-
PointOfServiceDistancePopulator
public PointOfServiceDistancePopulator()
-
-
Method Details
-
populate
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
-
setCustomerLocationService
-
getDistanceHelper
-
setDistanceHelper
-