Class DefaultCosServiceUtils

java.lang.Object
com.sap.sapoaacosintegration.services.common.util.impl.DefaultCosServiceUtils
All Implemented Interfaces:
CosServiceUtils

public class DefaultCosServiceUtils extends Object implements CosServiceUtils
Default COS service utility implementation
  • Constructor Details

    • DefaultCosServiceUtils

      public DefaultCosServiceUtils()
  • Method Details

    • generateItemNumber

      public 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:
      generateItemNumber in interface CosServiceUtils
      Returns:
      String
    • fetchDestinationCoordinates

      public de.hybris.platform.storelocator.GPS fetchDestinationCoordinates(de.hybris.platform.storelocator.data.AddressData addressData)
      Provides the GPS coordinates for the given AddressData
      Specified by:
      fetchDestinationCoordinates in interface CosServiceUtils
      Parameters:
      addressData -
      Returns:
      GPS
    • generateRandomString

      protected String generateRandomString()
    • getGeoWebServiceWrapper

      public de.hybris.platform.storelocator.GeoWebServiceWrapper getGeoWebServiceWrapper()
      Returns:
      the geoWebServiceWrapper
    • getConsumedDestinationModelById

      public ConsumedDestinationModel getConsumedDestinationModelById(String destinationId)
      Specified by:
      getConsumedDestinationModelById in interface CosServiceUtils
      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