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 Object
implements SapCpiOrderMapperService<OrderModel,SAPCpiOutboundServiceOrderModel>
Provides mapping from
OrderModel to SAPCpiOutboundOrderModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetComputedPriceValue(Map<String, SAPCpiOutboundServiceOrderItemModel> items, SAPCpiOutboundPriceComponentModel priceComponent) de.hybris.platform.servicelayer.model.ModelServiceprotected Map<String,SAPCpiOutboundServiceOrderItemModel> getServiceOrderItemsAsMap(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel) protected voidinitializeSapCpiOutboundServiceOrderItems(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel) protected voidinitializeServiceOrderItemsPriceComponents(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel) protected booleanisContactPerson(SAPCpiOutboundPartnerRoleModel partnerRole) protected booleanisItemPriceCondition(SAPCpiOutboundPriceComponentModel priceComponent, 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(Map<String, SAPCpiOutboundServiceOrderItemModel> items, SAPCpiOutboundPriceComponentModel priceComponent) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
Constructor Details
-
DefaultSapCpiServiceOrderMapperService
public DefaultSapCpiServiceOrderMapperService()
-
-
Method Details
-
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
-
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
-
initializeServiceOrderItemsPriceComponents
protected void initializeServiceOrderItemsPriceComponents(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel) -
getServiceOrderItemsAsMap
protected Map<String,SAPCpiOutboundServiceOrderItemModel> getServiceOrderItemsAsMap(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel) -
isItemPriceCondition
protected boolean isItemPriceCondition(SAPCpiOutboundPriceComponentModel priceComponent, String itemPriceConditionCode) -
getComputedPriceValue
protected String getComputedPriceValue(Map<String, SAPCpiOutboundServiceOrderItemModel> items, SAPCpiOutboundPriceComponentModel priceComponent) -
setItemPrice
protected void setItemPrice(Map<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)
-