Class DefaultPROSMerchandisingService
java.lang.Object
de.hybris.platform.prosservices.services.impl.DefaultPROSMerchandisingService
- All Implemented Interfaces:
PROSMerchandisingService
The Pros implementation of
PROSMerchandisingService interface. This class performs the actual rest call to
merchandising API.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertMerchandisingResponseToString(MerchandisingResponseMessage merchandisingResponseMessage) Convert the merchandising response message to string.convertStringToMerchandisingResponseMessage(String merchandisingResponseMessage) Converts the merchandising response string to merchandising response messageprotected voidcreateRequestData(RestRequestInfo restRequestInfo, MerchandisingRequestMessage merchandisingMessage) Create request data.doMerchandisingSearch(MerchandisingRequestMessage merchandisingMessage) This method sends a merchandising request message.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected RestSenderGets rest sender.protected com.fasterxml.jackson.databind.ObjectMapperGets shopping object mapper.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetRestSender(RestSender restSender) Sets rest sender.voidsetShoppingObjectMapper(com.fasterxml.jackson.databind.ObjectMapper shoppingObjectMapper) Sets shopping object mapper.
-
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:
doMerchandisingSearchin interfacePROSMerchandisingService- 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 infomerchandisingMessage- 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:
convertMerchandisingResponseToStringin interfacePROSMerchandisingService- 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:PROSMerchandisingServiceConverts the merchandising response string to merchandising response message- Specified by:
convertStringToMerchandisingResponseMessagein interfacePROSMerchandisingService- 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
Gets rest sender.- Returns:
- the rest sender
-
setRestSender
Sets rest sender.- Parameters:
restSender- the rest sender
-