Class DefaultSapCpiServiceOrderMapperService
- java.lang.Object
-
- de.hybris.platform.sap.sapserviceorder.service.impl.DefaultSapCpiServiceOrderMapperService
-
- Type Parameters:
SOURCE- the source object should of type OrderModelTARGET- the target object should of type SAPCpiOutboundOrderModel
- All Implemented Interfaces:
SapCpiOrderMapperService<OrderModel,SAPCpiOutboundServiceOrderModel>
public class DefaultSapCpiServiceOrderMapperService extends java.lang.Object implements SapCpiOrderMapperService<OrderModel,SAPCpiOutboundServiceOrderModel>
Provides mapping fromOrderModeltoSAPCpiOutboundOrderModel.
-
-
Constructor Summary
Constructors Constructor Description DefaultSapCpiServiceOrderMapperService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringgetComputedPriceValue(java.util.Map<java.lang.String,SAPCpiOutboundServiceOrderItemModel> items, SAPCpiOutboundPriceComponentModel priceComponent)de.hybris.platform.servicelayer.model.ModelServicegetModelService()protected java.util.Map<java.lang.String,SAPCpiOutboundServiceOrderItemModel>getServiceOrderItemsAsMap(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)protected voidinitializeSapCpiOutboundServiceOrderItems(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)protected voidinitializeServiceOrderItemsPriceComponents(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)protected booleanisContactPerson(SAPCpiOutboundPartnerRoleModel partnerRole)protected booleanisItemPriceCondition(SAPCpiOutboundPriceComponentModel priceComponent, java.lang.String itemPriceConditionCode)voidmap(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)Performs mapping from source to target.protected voidmapOrderItem(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)protected voidmapOrderItemDescription(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)Maps order item descriptionprotected voidmapOrderItemPrices(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)protected voidmapOrderItemSkills(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)Deprecated, for removal: This API element is subject to removal in a future version.handled skills in different wayprotected voidmapPartnerRoles(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)protected voidmapServiceOrder(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)protected voidsetItemPrice(java.util.Map<java.lang.String,SAPCpiOutboundServiceOrderItemModel> items, SAPCpiOutboundPriceComponentModel priceComponent)voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
-
Method Detail
-
map
public void map(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
Performs mapping from source to target.- Specified by:
mapin interfaceSapCpiOrderMapperService<OrderModel,SAPCpiOutboundServiceOrderModel>- Parameters:
source- Order Modeltarget- SAP CPI Outbound Order Model
-
mapServiceOrder
protected void mapServiceOrder(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
-
mapPartnerRoles
protected void mapPartnerRoles(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
-
isContactPerson
protected boolean isContactPerson(SAPCpiOutboundPartnerRoleModel partnerRole)
-
mapOrderItem
protected void mapOrderItem(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
-
initializeSapCpiOutboundServiceOrderItems
protected void initializeSapCpiOutboundServiceOrderItems(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
-
mapOrderItemDescription
protected void mapOrderItemDescription(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
Maps order item description- Parameters:
orderModel- order objectsapCpiOutboundServiceOrderModel- outbound order object
-
mapOrderItemSkills
@Deprecated(since="2003", forRemoval=true) protected void mapOrderItemSkills(OrderModel orderModel, SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)Deprecated, for removal: This API element is subject to removal in a future version.handled skills in different waySkills mapping- Parameters:
orderModel- ordersapCpiOutboundServiceOrderModel- outbound order
-
mapOrderItemPrices
protected void mapOrderItemPrices(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
-
initializeServiceOrderItemsPriceComponents
protected void initializeServiceOrderItemsPriceComponents(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
-
getServiceOrderItemsAsMap
protected java.util.Map<java.lang.String,SAPCpiOutboundServiceOrderItemModel> getServiceOrderItemsAsMap(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
-
isItemPriceCondition
protected boolean isItemPriceCondition(SAPCpiOutboundPriceComponentModel priceComponent, java.lang.String itemPriceConditionCode)
-
getComputedPriceValue
protected java.lang.String getComputedPriceValue(java.util.Map<java.lang.String,SAPCpiOutboundServiceOrderItemModel> items, SAPCpiOutboundPriceComponentModel priceComponent)
-
setItemPrice
protected void setItemPrice(java.util.Map<java.lang.String,SAPCpiOutboundServiceOrderItemModel> items, SAPCpiOutboundPriceComponentModel priceComponent)
-
getModelService
public de.hybris.platform.servicelayer.model.ModelService getModelService()
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
-