Class SapCpiOaaOrderEntryContributor
- java.lang.Object
-
- com.sap.hybris.sapcpioaaorderintegration.outbound.impl.SapCpiOaaOrderEntryContributor
-
- All Implemented Interfaces:
RawItemContributor<OrderModel>
public class SapCpiOaaOrderEntryContributor extends java.lang.Object implements RawItemContributor<OrderModel>
Adds ROCC OAA specific Fields to Order Entry for Order Replication
-
-
Constructor Summary
Constructors Constructor Description SapCpiOaaOrderEntryContributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOrderEntryKeyFields(OrderModel order, AbstractOrderEntryModel entry, java.util.Map<java.lang.String,java.lang.Object> row)voidaddProductFields(OrderModel order, AbstractOrderEntryModel entry, java.util.Map<java.lang.String,java.lang.Object> row)voidaddScheduleLines(AbstractOrderEntryModel entry, java.util.Map<java.lang.String,java.lang.Object> row)java.util.List<java.util.Map<java.lang.String,java.lang.Object>>createRows(OrderModel order)java.lang.StringdetermineItemShortText(AbstractOrderEntryModel item, java.lang.String language)java.util.Set<java.lang.String>getColumns()voidsetBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService)voidsetDatePattern(java.lang.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)
-
-
-
Method Detail
-
setBaseSiteService
public void setBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService)
- Parameters:
baseSiteService- the baseSiteService to set
-
setDatePattern
public void setDatePattern(java.lang.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'- Parameters:
datePattern- the date pattern
-
setSapCoreConfigurationService
public void setSapCoreConfigurationService(SAPConfigurationService sapCoreConfigurationService)
- Parameters:
sapCoreConfigurationService- the sapCoreConfigurationService to set
-
createRows
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> createRows(OrderModel order)
- 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, java.util.Map<java.lang.String,java.lang.Object> row)
- Parameters:
order-entry-row-
-
determineItemShortText
public java.lang.String determineItemShortText(AbstractOrderEntryModel item, java.lang.String language)
-
addOrderEntryKeyFields
public void addOrderEntryKeyFields(OrderModel order, AbstractOrderEntryModel entry, java.util.Map<java.lang.String,java.lang.Object> row)
- Parameters:
order-entry-row-
-
getColumns
public java.util.Set<java.lang.String> getColumns()
- Specified by:
getColumnsin interfaceRawItemContributor<OrderModel>- Returns:
- Columns to be included in the CSV string
-
addScheduleLines
public void addScheduleLines(AbstractOrderEntryModel entry, java.util.Map<java.lang.String,java.lang.Object> row)
- Parameters:
entry-row-
-
-