Class SourcingRequestMapperBase
- java.lang.Object
-
- com.sap.sapoaacarintegration.services.sourcing.impl.SourcingRequestMapperBase
-
- Direct Known Subclasses:
DefaultSourcingRequestMapper,OaaApiV1SourcingRequestMapper
public abstract class SourcingRequestMapperBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringABAP_TRUEABAP true flagprotected static java.lang.StringCONFIG_PROPERTY_ACCESS_DELIVERY_MODESAP access delivery mode configuration propertyprotected static java.lang.StringCONFIG_PROPERTY_SAP_DELIVERY_MODESSAP delivery modes configuration propertyprotected ServiceUtilsserviceUtils
-
Constructor Summary
Constructors Constructor Description SourcingRequestMapperBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringconvertHybrisDelModeToSapShippingMethod(DeliveryModeModel deliveryMode)Converts an hybris delivery mode into a SAP shipping conditionprotected SAPConfigurationServicegetSapCoreConfigurationService()protected ServiceUtilsgetServiceUtils()protected CartItemssetAllCartItems(AbstractOrderModel cartModel)Maps CartModel to CartItems.protected voidsetCart(AbstractOrderModel abstractOrderModel, CartRequest cart, java.lang.String reservationStatus)voidsetSapCoreConfigurationService(SAPConfigurationService sapCoreConfigurationService)voidsetServiceUtils(ServiceUtils serviceUtils)
-
-
-
Field Detail
-
ABAP_TRUE
protected static final java.lang.String ABAP_TRUE
ABAP true flag- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_SAP_DELIVERY_MODES
protected static final java.lang.String CONFIG_PROPERTY_SAP_DELIVERY_MODES
SAP delivery modes configuration property- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_ACCESS_DELIVERY_MODE
protected static final java.lang.String CONFIG_PROPERTY_ACCESS_DELIVERY_MODE
SAP access delivery mode configuration property- See Also:
- Constant Field Values
-
serviceUtils
protected ServiceUtils serviceUtils
-
-
Method Detail
-
setSapCoreConfigurationService
public void setSapCoreConfigurationService(SAPConfigurationService sapCoreConfigurationService)
- Parameters:
sapCoreConfigurationService- the sapCoreConfigurationService to set
-
getSapCoreConfigurationService
protected SAPConfigurationService getSapCoreConfigurationService()
- Returns:
- the sapCoreConfigurationService
-
convertHybrisDelModeToSapShippingMethod
protected java.lang.String convertHybrisDelModeToSapShippingMethod(DeliveryModeModel deliveryMode)
Converts an hybris delivery mode into a SAP shipping condition- Parameters:
deliveryMode-- Returns:
- the code for the sap shipping condition
-
setServiceUtils
public void setServiceUtils(ServiceUtils serviceUtils)
- Parameters:
serviceUtils- the serviceUtils to set
-
getServiceUtils
protected ServiceUtils getServiceUtils()
- Returns:
- the serviceUtils
-
setAllCartItems
protected CartItems setAllCartItems(AbstractOrderModel cartModel)
Maps CartModel to CartItems.- Parameters:
cartModel-- Returns:
- CartItems
-
setCart
protected void setCart(AbstractOrderModel abstractOrderModel, CartRequest cart, java.lang.String reservationStatus)
- Parameters:
abstractOrderModel-cart-reservationStatus-
-
-