Class DefaultSapCpiQuoteMapperService
java.lang.Object
com.sap.hybris.sapquoteintegration.outbound.service.impl.DefaultSapCpiQuoteMapperService
- All Implemented Interfaces:
SapCpiQuoteMapperService<QuoteModel,SAPCpiOutboundQuoteModel>
public class DefaultSapCpiQuoteMapperService
extends Object
implements SapCpiQuoteMapperService<QuoteModel,SAPCpiOutboundQuoteModel>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.log4j.Loggerprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringappendPromotions(List<de.hybris.platform.promotions.jalo.PromotionResult> promotions) protected StringcreatePromotionSummary(de.hybris.platform.promotions.result.PromotionOrderResults promotionResults) de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,?> de.hybris.platform.servicelayer.config.ConfigurationServicede.hybris.platform.commerceservices.strategies.CustomerNameStrategyde.hybris.platform.promotions.PromotionsServicede.hybris.platform.order.QuoteServiceprotected CompanyModelgetRootB2BUnit(B2BCustomerModel customerModel) protected AddressModelgetValidAddress(Collection<AddressModel> addresses) voidmap(QuoteModel quoteModel, SAPCpiOutboundQuoteModel scpiQuoteModel) Performs mapping from source to target.protected SAPCpiOutboundQuoteCustomerModelmapCustomer(B2BCustomerModel customerModel) protected Set<SAPCpiOutboundQuoteCustomerModel>mapQuoteCustomers(B2BCustomerModel customerModel) protected SAPCpiOutboundQuoteModelmapQuoteToSapCpiOutboundQuote(QuoteModel quoteModel, SAPCpiOutboundQuoteModel scpiQuoteModel) protected voidpopulateAddress(SAPCpiOutboundQuoteCustomerModel customer, AddressModel address) voidsetB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel, ?> b2bUnitService) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetCustomerNameStrategy(de.hybris.platform.commerceservices.strategies.CustomerNameStrategy customerNameStrategy) voidsetPromotionsService(de.hybris.platform.promotions.PromotionsService promotionsService) voidsetQuoteService(de.hybris.platform.order.QuoteService quoteService)
-
Field Details
-
LOG
protected static final org.apache.log4j.Logger LOG -
PROMOTION_PREFX
- See Also:
-
-
Constructor Details
-
DefaultSapCpiQuoteMapperService
public DefaultSapCpiQuoteMapperService()
-
-
Method Details
-
map
Description copied from interface:SapCpiQuoteMapperServicePerforms mapping from source to target.- Specified by:
mapin interfaceSapCpiQuoteMapperService<QuoteModel,SAPCpiOutboundQuoteModel> - Parameters:
quoteModel- Quote ModelscpiQuoteModel- SAP CPI Outbound Quote Model
-
mapQuoteToSapCpiOutboundQuote
protected SAPCpiOutboundQuoteModel mapQuoteToSapCpiOutboundQuote(QuoteModel quoteModel, SAPCpiOutboundQuoteModel scpiQuoteModel) -
createPromotionSummary
protected String createPromotionSummary(de.hybris.platform.promotions.result.PromotionOrderResults promotionResults) -
appendPromotions
-
mapQuoteCustomers
-
mapCustomer
-
getRootB2BUnit
-
populateAddress
-
getValidAddress
-
getConfigurationService
public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService() -
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) -
getCustomerNameStrategy
public de.hybris.platform.commerceservices.strategies.CustomerNameStrategy getCustomerNameStrategy() -
setCustomerNameStrategy
public void setCustomerNameStrategy(de.hybris.platform.commerceservices.strategies.CustomerNameStrategy customerNameStrategy) -
getPromotionsService
public de.hybris.platform.promotions.PromotionsService getPromotionsService() -
setPromotionsService
public void setPromotionsService(de.hybris.platform.promotions.PromotionsService promotionsService) -
getQuoteService
public de.hybris.platform.order.QuoteService getQuoteService() -
setQuoteService
public void setQuoteService(de.hybris.platform.order.QuoteService quoteService) -
getB2bUnitService
-
setB2bUnitService
public void setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel, ?> b2bUnitService)
-