Class DefaultSapCpiQuoteMapperService
- java.lang.Object
-
- com.sap.hybris.sapquoteintegration.outbound.service.impl.DefaultSapCpiQuoteMapperService
-
- All Implemented Interfaces:
SapCpiQuoteMapperService<QuoteModel,SAPCpiOutboundQuoteModel>
public class DefaultSapCpiQuoteMapperService extends java.lang.Object implements SapCpiQuoteMapperService<QuoteModel,SAPCpiOutboundQuoteModel>
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.LoggerLOGprotected static java.lang.StringPROMOTION_PREFX
-
Constructor Summary
Constructors Constructor Description DefaultSapCpiQuoteMapperService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringappendPromotions(java.util.List<de.hybris.platform.promotions.jalo.PromotionResult> promotions)protected java.lang.StringcreatePromotionSummary(de.hybris.platform.promotions.result.PromotionOrderResults promotionResults)de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,?>getB2bUnitService()de.hybris.platform.servicelayer.config.ConfigurationServicegetConfigurationService()de.hybris.platform.commerceservices.strategies.CustomerNameStrategygetCustomerNameStrategy()de.hybris.platform.promotions.PromotionsServicegetPromotionsService()de.hybris.platform.order.QuoteServicegetQuoteService()protected CompanyModelgetRootB2BUnit(B2BCustomerModel customerModel)protected AddressModelgetValidAddress(java.util.Collection<AddressModel> addresses)voidmap(QuoteModel quoteModel, SAPCpiOutboundQuoteModel scpiQuoteModel)Performs mapping from source to target.protected SAPCpiOutboundQuoteCustomerModelmapCustomer(B2BCustomerModel customerModel)protected java.util.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 Detail
-
LOG
protected static final org.apache.log4j.Logger LOG
-
PROMOTION_PREFX
protected static final java.lang.String PROMOTION_PREFX
- See Also:
- Constant Field Values
-
-
Method Detail
-
map
public void map(QuoteModel quoteModel, SAPCpiOutboundQuoteModel scpiQuoteModel)
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 java.lang.String createPromotionSummary(de.hybris.platform.promotions.result.PromotionOrderResults promotionResults)
-
appendPromotions
protected java.lang.String appendPromotions(java.util.List<de.hybris.platform.promotions.jalo.PromotionResult> promotions)
-
mapQuoteCustomers
protected java.util.Set<SAPCpiOutboundQuoteCustomerModel> mapQuoteCustomers(B2BCustomerModel customerModel)
-
mapCustomer
protected SAPCpiOutboundQuoteCustomerModel mapCustomer(B2BCustomerModel customerModel)
-
getRootB2BUnit
protected CompanyModel getRootB2BUnit(B2BCustomerModel customerModel)
-
populateAddress
protected void populateAddress(SAPCpiOutboundQuoteCustomerModel customer, AddressModel address)
-
getValidAddress
protected AddressModel getValidAddress(java.util.Collection<AddressModel> addresses)
-
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
public de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,?> getB2bUnitService()
-
setB2bUnitService
public void setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,?> b2bUnitService)
-
-