public class DefaultDataHubOutboundClient extends Object implements DataHubOutboundClient
| Modifier | Constructor and Description |
|---|---|
|
DefaultDataHubOutboundClient()
Instantiates this client.
|
protected |
DefaultDataHubOutboundClient(Client cl) |
|
DefaultDataHubOutboundClient(ClientConfiguration cfg) |
| Modifier and Type | Method and Description |
|---|---|
ResultData |
deleteByFeed(String feedName,
String rawItemType)
Deletes all items originating from the data feed and raw item type specified
|
ResultData |
deleteByFeed(String feedName,
String rawItemType,
Map<String,Object> keyFields)
Deletes item with an integration key comprised of the specified primary keys, originating from the data feed and
raw item type specified
|
ResultData |
deleteItem(String poolName,
String canonicalItemType,
Map<String,String> keyFields)
Deletes item with an integration key comprised of the specified primary keys, of the type specified, in the pool
specified on the Data Hub server
|
ResultData |
exportData(String[] csvContent,
String dataFeed,
String rawItemType) |
void |
setDataHubUrl(String dataHubUrl)
Specifies DataHub location.
|
void |
setRetryTemplate(RetryTemplate retryTemplate) |
public DefaultDataHubOutboundClient()
protected DefaultDataHubOutboundClient(Client cl)
public DefaultDataHubOutboundClient(ClientConfiguration cfg)
public ResultData exportData(String[] csvContent, String dataFeed, String rawItemType) throws DataHubOutboundException, DataHubCommunicationException
exportData in interface DataHubOutboundClientcsvContent - the CSV contentdataFeed - the name of the data feedrawItemType - the raw item typeDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationDataHubCommunicationException - if communication with the Data Hub server failedpublic ResultData deleteItem(String poolName, String canonicalItemType, Map<String,String> keyFields) throws DataHubOutboundException, DataHubCommunicationException
DataHubOutboundClientdeleteItem in interface DataHubOutboundClientpoolName - name of the data pool the item to be deleted resides incanonicalItemType - type code for the canonical item to deletekeyFields - map of primary key attribute names and values to uniquely identify the item to be deletedDataHubOutboundException - if the Data Hub server was unable to successfully complete the delete operationDataHubCommunicationException - if communication with the Data Hub server failedpublic ResultData deleteByFeed(String feedName, String rawItemType) throws DataHubOutboundException, DataHubCommunicationException
DataHubOutboundClientdeleteByFeed in interface DataHubOutboundClientfeedName - Name of the data feed the items originated fromrawItemType - Name of the raw item type the items originated fromDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationDataHubCommunicationException - if communication with the Data Hub server failedpublic ResultData deleteByFeed(String feedName, String rawItemType, Map<String,Object> keyFields) throws DataHubOutboundException, DataHubCommunicationException
DataHubOutboundClientdeleteByFeed in interface DataHubOutboundClientfeedName - Name of the data feed the items originated fromrawItemType - Name of the raw item type the items originated fromkeyFields - Map of primary key attribute names and values to uniquely identify the item to be deletedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationDataHubCommunicationException - if communication with the Data Hub server failedpublic void setRetryTemplate(RetryTemplate retryTemplate)
public void setDataHubUrl(String dataHubUrl)
dataHubUrl - URL for the DataHub server to exchange data with.Copyright © 2017 SAP SE. All Rights Reserved.