Class SECReturnRequestPopulator
- java.lang.Object
-
- com.sap.hybris.sec.eventpublisher.populator.SECReturnRequestPopulator
-
- All Implemented Interfaces:
Populator<ReturnRequestModel,ReturnRequest>
public class SECReturnRequestPopulator extends java.lang.Object implements Populator<ReturnRequestModel,ReturnRequest>
-
-
Constructor Summary
Constructors Constructor Description SECReturnRequestPopulator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.StringdateFormatter(java.util.Date date, java.lang.String formatterType)protected java.util.List<ReturnStatus>getCancellableReturnStatusList()ConfigurationServicegetConfigurationService()CustomerNameStrategygetCustomerNameStrategy()voidpopulate(ReturnRequestModel source, ReturnRequest target)Populate the target instance with values from the source instance.protected voidpopulateIndexOrder(OrderModel orderModel, java.util.Map<java.lang.String,java.lang.String> indexOrderData, CustomerModel customerModel)protected voidpopulateReturnRequestFields(ReturnRequestModel returnRequestModel, ReturnRequest returnRequest)voidsetCancellableReturnStatusList(java.util.List<ReturnStatus> cancellableReturnStatusList)voidsetConfigurationService(ConfigurationService configurationService)voidsetCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
-
-
-
Method Detail
-
populate
public void populate(ReturnRequestModel source, ReturnRequest target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ReturnRequestModel,ReturnRequest>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
populateReturnRequestFields
protected void populateReturnRequestFields(ReturnRequestModel returnRequestModel, ReturnRequest returnRequest)
-
populateIndexOrder
protected void populateIndexOrder(OrderModel orderModel, java.util.Map<java.lang.String,java.lang.String> indexOrderData, CustomerModel customerModel)
-
dateFormatter
protected static java.lang.String dateFormatter(java.util.Date date, java.lang.String formatterType)
-
getConfigurationService
public ConfigurationService getConfigurationService()
- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
- Parameters:
configurationService- the configurationService to set
-
getCustomerNameStrategy
public CustomerNameStrategy getCustomerNameStrategy()
- Returns:
- the customerNameStrategy
-
setCustomerNameStrategy
public void setCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
- Parameters:
customerNameStrategy- the customerNameStrategy to set
-
getCancellableReturnStatusList
protected java.util.List<ReturnStatus> getCancellableReturnStatusList()
-
setCancellableReturnStatusList
public void setCancellableReturnStatusList(java.util.List<ReturnStatus> cancellableReturnStatusList)
-
-