Class DefaultCosServiceUtils

  • All Implemented Interfaces:
    CosServiceUtils

    public class DefaultCosServiceUtils
    extends java.lang.Object
    implements CosServiceUtils
    Default COS service utility implementation
    • Constructor Detail

      • DefaultCosServiceUtils

        public DefaultCosServiceUtils()
    • 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:
        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 java.lang.String generateRandomString()
      • getGeoWebServiceWrapper

        public de.hybris.platform.storelocator.GeoWebServiceWrapper getGeoWebServiceWrapper()
        Returns:
        the geoWebServiceWrapper
      • 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