Class DataHubTransferHandler
- java.lang.Object
-
- de.hybris.platform.sap.core.configuration.datahub.DataHubTransferHandler
-
public class DataHubTransferHandler extends java.lang.ObjectThis class handles the transfer of configuration models to the data hub via property map.
-
-
Constructor Summary
Constructors Constructor Description DataHubTransferHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectcreateConfigurationDTO(ItemModel model, AbstractPopulatingConverter converter)Creates the DTO for the item type of the save event.protected java.util.Map<java.lang.String,java.lang.Object>createConfigurationMap(ItemModel model, AbstractPopulatingConverter<ItemModel,java.util.Map<java.lang.String,java.lang.Object>> converter)Creates the property map for the given model.DataHubTransferLoginvokeDeleteContent(java.lang.String code, java.util.List<DataHubTransferConfiguration> dataHubTransferConfigurations, DataHubTransferLog dataHubTransferLog)Delete configuration content in the Data Hub.DataHubTransferLoginvokeDeleteItem(java.lang.String code, java.util.List<ItemModel> models, java.util.List<DataHubTransferConfiguration> dataHubTransferConfigurations, DataHubTransferLog dataHubTransferLog)Delete configuration items in the Data Hub.DataHubTransferLoginvokeTransfer(java.lang.String code, java.util.List<ItemModel> models, java.util.List<DataHubTransferConfiguration> dataHubTransferConfigurations, DataHubTransferLog dataHubTransferLog)Invokes the data transfer of the given configuration models to data hub.voidsetDataHubOutboundService(DataHubOutboundService outboundService)Injection setter forDataHubOutboundService
-
-
-
Method Detail
-
setDataHubOutboundService
public void setDataHubOutboundService(DataHubOutboundService outboundService)
Injection setter forDataHubOutboundService- Parameters:
outboundService-DataHubOutboundService
-
invokeTransfer
public DataHubTransferLog invokeTransfer(java.lang.String code, java.util.List<ItemModel> models, java.util.List<DataHubTransferConfiguration> dataHubTransferConfigurations, DataHubTransferLog dataHubTransferLog) throws DataHubCommunicationException
Invokes the data transfer of the given configuration models to data hub.- Parameters:
code- item code as stringmodels- list of configuration modelsdataHubTransferConfigurations- list of data hub transfer configurations related to this modeldataHubTransferLog- collect the log information for the data hub- Returns:
DataHubTransferLog- Throws:
DataHubCommunicationException- if the Data Hub server was unable to successfully complete the export operation
-
invokeDeleteItem
public DataHubTransferLog invokeDeleteItem(java.lang.String code, java.util.List<ItemModel> models, java.util.List<DataHubTransferConfiguration> dataHubTransferConfigurations, DataHubTransferLog dataHubTransferLog) throws DataHubCommunicationException
Delete configuration items in the Data Hub.- Parameters:
code- item code as stringmodels- list of configuration modelsdataHubTransferConfigurations- list of data hub transfer configurations related to this modeldataHubTransferLog- collect the log information for the data hub- Returns:
DataHubTransferLog- Throws:
DataHubCommunicationException- if the Data Hub server was unable to successfully complete the export operation
-
invokeDeleteContent
public DataHubTransferLog invokeDeleteContent(java.lang.String code, java.util.List<DataHubTransferConfiguration> dataHubTransferConfigurations, DataHubTransferLog dataHubTransferLog) throws DataHubCommunicationException
Delete configuration content in the Data Hub. #- Parameters:
code- item code as stringdataHubTransferConfigurations- list of data hub transfer configurations related to this modeldataHubTransferLog- collect the log information for the data hub- Returns:
DataHubTransferLog- Throws:
DataHubCommunicationException- if the Data Hub server was unable to successfully complete the export operation
-
createConfigurationMap
protected java.util.Map<java.lang.String,java.lang.Object> createConfigurationMap(ItemModel model, AbstractPopulatingConverter<ItemModel,java.util.Map<java.lang.String,java.lang.Object>> converter)
Creates the property map for the given model.- Parameters:
model- the given modelconverter- converter for populating the property map- Returns:
- the related property map of the event
-
createConfigurationDTO
protected java.lang.Object createConfigurationDTO(ItemModel model, AbstractPopulatingConverter converter)
Creates the DTO for the item type of the save event.- Parameters:
model- source item modelconverter- converter for populating the dto- Returns:
- the related DTO of the event
-
-