Class DefaultCosServiceUtils
- java.lang.Object
-
- com.sap.sapoaacosintegration.services.common.util.impl.DefaultCosServiceUtils
-
- All Implemented Interfaces:
CosServiceUtils
public class DefaultCosServiceUtils extends java.lang.Object implements CosServiceUtils
Default COS service utility implementation
-
-
Constructor Summary
Constructors Constructor Description DefaultCosServiceUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.hybris.platform.storelocator.GPSfetchDestinationCoordinates(de.hybris.platform.storelocator.data.AddressData addressData)Provides the GPS coordinates for the givenAddressDatajava.lang.StringgenerateItemNumber()generates a random item number in follwing pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$protected java.lang.StringgenerateRandomString()ConsumedDestinationModelgetConsumedDestinationModelById(java.lang.String destinationId)de.hybris.platform.servicelayer.search.FlexibleSearchServicegetFlexibleSearchService()de.hybris.platform.storelocator.GeoWebServiceWrappergetGeoWebServiceWrapper()voidsetFlexibleSearchService(de.hybris.platform.servicelayer.search.FlexibleSearchService flexibleSearchService)voidsetGeoWebServiceWrapper(de.hybris.platform.storelocator.GeoWebServiceWrapper geoWebServiceWrapper)
-
-
-
Method Detail
-
generateItemNumber
public java.lang.String generateItemNumber()
generates a random item number in follwing pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$- Specified by:
generateItemNumberin interfaceCosServiceUtils- Returns:
String
-
fetchDestinationCoordinates
public de.hybris.platform.storelocator.GPS fetchDestinationCoordinates(de.hybris.platform.storelocator.data.AddressData addressData)
Provides the GPS coordinates for the givenAddressData- Specified by:
fetchDestinationCoordinatesin interfaceCosServiceUtils- Parameters:
addressData-- Returns:
GPS
-
generateRandomString
protected java.lang.String generateRandomString()
-
getGeoWebServiceWrapper
public de.hybris.platform.storelocator.GeoWebServiceWrapper getGeoWebServiceWrapper()
- Returns:
- the geoWebServiceWrapper
-
getConsumedDestinationModelById
public ConsumedDestinationModel getConsumedDestinationModelById(java.lang.String destinationId)
- Specified by:
getConsumedDestinationModelByIdin interfaceCosServiceUtils- Returns:
ConsumedDestinationModel
-
setGeoWebServiceWrapper
public void setGeoWebServiceWrapper(de.hybris.platform.storelocator.GeoWebServiceWrapper geoWebServiceWrapper)
- Parameters:
geoWebServiceWrapper- the geoWebServiceWrapper to set
-
getFlexibleSearchService
public de.hybris.platform.servicelayer.search.FlexibleSearchService getFlexibleSearchService()
- Returns:
- the flexibleSearchService
-
setFlexibleSearchService
public void setFlexibleSearchService(de.hybris.platform.servicelayer.search.FlexibleSearchService flexibleSearchService)
- Parameters:
flexibleSearchService- the flexibleSearchService to set
-
-