Class SapCpiOaaOrderEntryContributor
java.lang.Object
com.sap.hybris.sapcpioaaorderintegration.outbound.impl.SapCpiOaaOrderEntryContributor
- All Implemented Interfaces:
RawItemContributor<OrderModel>
public class SapCpiOaaOrderEntryContributor
extends Object
implements RawItemContributor<OrderModel>
Adds ROCC OAA specific Fields to Order Entry for Order Replication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrderEntryKeyFields(OrderModel order, AbstractOrderEntryModel entry, Map<String, Object> row) voidaddProductFields(OrderModel order, AbstractOrderEntryModel entry, Map<String, Object> row) voidaddScheduleLines(AbstractOrderEntryModel entry, Map<String, Object> row) createRows(OrderModel order) determineItemShortText(AbstractOrderEntryModel item, String language) voidsetBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) voidsetDatePattern(String datePattern) The date pattern to use when converting Date objects to Strings in UTC timezone This value is read from a property 'datahubadapter.datahuboutbound.date.pattern'voidsetSapCoreConfigurationService(SAPConfigurationService sapCoreConfigurationService)
-
Constructor Details
-
SapCpiOaaOrderEntryContributor
public SapCpiOaaOrderEntryContributor()
-
-
Method Details
-
setBaseSiteService
public void setBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) - Parameters:
baseSiteService- the baseSiteService to set
-
setDatePattern
The date pattern to use when converting Date objects to Strings in UTC timezone This value is read from a property 'datahubadapter.datahuboutbound.date.pattern'- Parameters:
datePattern- the date pattern
-
setSapCoreConfigurationService
- Parameters:
sapCoreConfigurationService- the sapCoreConfigurationService to set
-
createRows
- Specified by:
createRowsin interfaceRawItemContributor<OrderModel>- Parameters:
order- The item model from which parts of the CSV string shall be created- Returns:
- Name / value pairs. The names must correspond to the column names as returned in
RawItemContributor.getColumns(). Each list entry corresponds to one line of the CSV string
-
addProductFields
public void addProductFields(OrderModel order, AbstractOrderEntryModel entry, Map<String, Object> row) - Parameters:
order-entry-row-
-
determineItemShortText
-
addOrderEntryKeyFields
public void addOrderEntryKeyFields(OrderModel order, AbstractOrderEntryModel entry, Map<String, Object> row) - Parameters:
order-entry-row-
-
getColumns
- Specified by:
getColumnsin interfaceRawItemContributor<OrderModel>- Returns:
- Columns to be included in the CSV string
-
addScheduleLines
- Parameters:
entry-row-
-