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
-
-
-
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(PromotionOrderResults promotionResults)
-
appendPromotions
protected java.lang.String appendPromotions(java.util.List<PromotionResult> promotions)
-
mapQuoteCustomers
protected java.util.Set<SAPCpiOutboundQuoteCustomerModel> mapQuoteCustomers(B2BCustomerModel customerModel)
-
mapCustomer
protected SAPCpiOutboundQuoteCustomerModel mapCustomer(B2BCustomerModel customerModel)
-
populateAddress
protected void populateAddress(SAPCpiOutboundQuoteCustomerModel customer, AddressModel address)
-
getValidAddress
protected AddressModel getValidAddress(java.util.Collection<AddressModel> addresses)
-
getConfigurationService
public ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getCustomerNameStrategy
public CustomerNameStrategy getCustomerNameStrategy()
-
setCustomerNameStrategy
public void setCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
-
getPromotionsService
public PromotionsService getPromotionsService()
-
setPromotionsService
public void setPromotionsService(PromotionsService promotionsService)
-
getQuoteService
public QuoteService getQuoteService()
-
setQuoteService
public void setQuoteService(QuoteService quoteService)
-
-