Class DefaultPROSMerchandisingService

java.lang.Object
de.hybris.platform.prosservices.services.impl.DefaultPROSMerchandisingService
All Implemented Interfaces:
PROSMerchandisingService

public class DefaultPROSMerchandisingService extends Object implements PROSMerchandisingService
The Pros implementation of PROSMerchandisingService interface. This class performs the actual rest call to merchandising API.
  • Constructor Details

    • DefaultPROSMerchandisingService

      public DefaultPROSMerchandisingService()
  • Method Details

    • doMerchandisingSearch

      public MerchandisingResponseMessage doMerchandisingSearch(MerchandisingRequestMessage merchandisingMessage) throws com.fasterxml.jackson.core.JsonProcessingException
      This method sends a merchandising request message.
      Specified by:
      doMerchandisingSearch in interface PROSMerchandisingService
      Parameters:
      merchandisingMessage - the merchandising request message
      Returns:
      the MerchandisingResponseMessage
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - to be thrown when an error occurs during the conversion of the request message in a json string.
    • createRequestData

      protected void createRequestData(RestRequestInfo restRequestInfo, MerchandisingRequestMessage merchandisingMessage) throws com.fasterxml.jackson.core.JsonProcessingException
      Create request data.
      Parameters:
      restRequestInfo - the rest request info
      merchandisingMessage - the merchandising message
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - to be thrown when an error occurs during the conversion of the request message in a json string.
    • convertMerchandisingResponseToString

      public String convertMerchandisingResponseToString(MerchandisingResponseMessage merchandisingResponseMessage) throws com.fasterxml.jackson.core.JsonProcessingException
      Convert the merchandising response message to string.
      Specified by:
      convertMerchandisingResponseToString in interface PROSMerchandisingService
      Parameters:
      merchandisingResponseMessage - the merchandising response message
      Returns:
      the message converted into string
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - to be thrown when an error occurs during the conversion of the merchandising response message to string.
    • convertStringToMerchandisingResponseMessage

      public MerchandisingResponseMessage convertStringToMerchandisingResponseMessage(String merchandisingResponseMessage)
      Description copied from interface: PROSMerchandisingService
      Converts the merchandising response string to merchandising response message
      Specified by:
      convertStringToMerchandisingResponseMessage in interface PROSMerchandisingService
      Parameters:
      merchandisingResponseMessage - the string merchandising search response wrapper
      Returns:
      the merchandising response message
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets configuration service.
      Returns:
      the configuration service
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets configuration service.
      Parameters:
      configurationService - the configuration service
    • getShoppingObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getShoppingObjectMapper()
      Gets shopping object mapper.
      Returns:
      the shopping object mapper
    • setShoppingObjectMapper

      public void setShoppingObjectMapper(com.fasterxml.jackson.databind.ObjectMapper shoppingObjectMapper)
      Sets shopping object mapper.
      Parameters:
      shoppingObjectMapper - the shopping object mapper
    • getRestSender

      protected RestSender getRestSender()
      Gets rest sender.
      Returns:
      the rest sender
    • setRestSender

      public void setRestSender(RestSender restSender)
      Sets rest sender.
      Parameters:
      restSender - the rest sender