public class DefaultDataHubOutboundService extends java.lang.Object implements DataHubOutboundService
| Constructor and Description |
|---|
DefaultDataHubOutboundService() |
| Modifier and Type | Method and Description |
|---|---|
ResultData |
deleteByFeed(java.lang.String rawItemType)
Deletes all items originating from the DEFAULT_FEED on the Data Hub server and raw type specified and the
|
ResultData |
deleteByFeed(java.lang.String rawItemType,
java.util.Map<java.lang.String,java.lang.Object> keyFields)
Deletes all canonical items in the default data pool composed from the specified raw item.
|
ResultData |
deleteByFeed(java.lang.String feedName,
java.lang.String rawItemType)
Deletes all items originating from the data feed and raw type specified
|
ResultData |
deleteByFeed(java.lang.String feedName,
java.lang.String rawItemType,
java.util.Map<java.lang.String,java.lang.Object> keyFields)
Deletes all canonical items composed from the specified raw item.
|
ResultData |
deleteItem(java.lang.String canonicalItemType,
java.util.Map<java.lang.String,java.lang.String> keyFields)
Deletes item with an integration key comprised of the specified primary keys, of the type specified, in the GLOBAL
pool on the Data Hub server
|
ResultData |
deleteItem(java.lang.String poolName,
java.lang.String canonicalItemType,
java.util.Map<java.lang.String,java.lang.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 |
sendToDataHub(java.lang.String rawType,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> objList)
Sends the specified List of Maps to the DataHub as Raw Items in CSV format.
|
ResultData |
sendToDataHub(java.lang.String rawType,
java.util.Map<java.lang.String,java.lang.Object> objectMap)
Sends the specified Map to the DataHub as a Raw Item in CSV format.
|
ResultData |
sendToDataHub(java.lang.String rawType,
java.lang.Object obj)
Sends the specified
Object to the DataHub as a Raw Item in CSV format. |
ResultData |
sendToDataHub(java.lang.String feedName,
java.lang.String rawType,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> objList)
Sends the specified List of Maps to the DataHub as Raw Items in CSV format.
|
ResultData |
sendToDataHub(java.lang.String feedName,
java.lang.String rawType,
java.util.Map<java.lang.String,java.lang.Object> objectMap)
Sends the specified
Map to the DataHub as a Raw Item in CSV format. |
ResultData |
sendToDataHub(java.lang.String feedName,
java.lang.String rawType,
java.lang.Object obj)
Sends the specified
Object to the DataHub as a Raw Item in CSV format. |
void |
setCsvUtils(OutboundServiceCsvUtils csvUtils)
Injects the utilities class
|
void |
setDataHubOutboundClient(DataHubOutboundClient dataHubOutboundClient)
Injects Data Hub client to be used for communication with the Data Hub.
|
public ResultData sendToDataHub(java.lang.String feedName, java.lang.String rawType, java.lang.Object obj) throws DataHubOutboundException
DataHubOutboundServiceObject to the DataHub as a Raw Item in CSV format.
>
Collection are not supported as object properties and will be ignored. Properties with null values
will be ignored.
The object's property names are appended to the CSV header. The string value of the object's properties will be appended to the CSV body.
sendToDataHub in interface DataHubOutboundServicefeedName - the name of the Data FeedrawType - the Raw Type to create in the DataHubobj - the object to send to Data HubDataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData sendToDataHub(java.lang.String rawType, java.lang.Object obj) throws DataHubOutboundException
DataHubOutboundServiceObject to the DataHub as a Raw Item in CSV format.
Collection are not supported as object properties and will be ignored. Properties with null values
will be ignored.
The object's property names are appended to the CSV header. The string value of the object's properties will be appended to the CSV body.
The value of the feedName is defaulted to DEFAULT_FEED.
sendToDataHub in interface DataHubOutboundServicerawType - the Raw Type to create in the DataHubobj - the object to send to Data HubDataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData sendToDataHub(java.lang.String feedName, java.lang.String rawType, java.util.Map<java.lang.String,java.lang.Object> objectMap) throws DataHubOutboundException
DataHubOutboundServiceMap to the DataHub as a Raw Item in CSV format.
Collection are not supported as Map.Entry values and will be ignored.
The Map keys are used as values in the CSV header. The string value of Map.Entry values
will be used in the CSV body.
sendToDataHub in interface DataHubOutboundServicefeedName - the name of the Data FeedrawType - the Raw Type to create in the DataHubobjectMap - the Map of key/value pairs to send to Data Hub. The key represents the field nameDataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData sendToDataHub(java.lang.String rawType, java.util.Map<java.lang.String,java.lang.Object> objectMap) throws DataHubOutboundException
DataHubOutboundService
Collection are not supported as Map.Entry values and will be ignored.
The value of the feedName is defaulted to DEFAULT_FEED.
sendToDataHub in interface DataHubOutboundServicerawType - the Raw Type to create in the DataHubobjectMap - the Map of key/value pairs to send to Data Hub. The key represents the field nameDataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData sendToDataHub(java.lang.String feedName, java.lang.String rawType, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> objList) throws DataHubOutboundException
DataHubOutboundService
Collection are not supported as Map.Entry values and will be ignored.
CSV header is populated using the keys from the first Map in the List. Each Map in the List should contain the same keys.
sendToDataHub in interface DataHubOutboundServicefeedName - the name of the Data FeedrawType - the Raw Type to create in the DataHubobjList - a List of Maps. Each Map represents one row of CSV data to send to Data Hub.DataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData sendToDataHub(java.lang.String rawType, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> objList) throws DataHubOutboundException
DataHubOutboundService
Collection are not supported as Map.Entry values and will be ignored.
CSV header is populated using the keys from the first Map in the List. Each Map in the List should contain the same keys.
The value of the feedName is defaulted to DEFAULT_FEED.
sendToDataHub in interface DataHubOutboundServicerawType - the Raw Type to create in the DataHubobjList - a List of Maps. Each Map represents one row of CSV data to send to Data Hub.DataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData deleteItem(java.lang.String poolName, java.lang.String canonicalItemType, java.util.Map<java.lang.String,java.lang.String> keyFields) throws DataHubOutboundException
DataHubOutboundServicedeleteItem in interface DataHubOutboundServicepoolName - name of the data pool the item to be deleted resides incanonicalItemType - type code for the item to deletekeyFields - map of primary key attribute names and values to uniquely identify the item to be deletedDataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData deleteItem(java.lang.String canonicalItemType, java.util.Map<java.lang.String,java.lang.String> keyFields) throws DataHubOutboundException
DataHubOutboundServicedeleteItem in interface DataHubOutboundServicecanonicalItemType - type code for the item to deletekeyFields - map of primary key attribute names and values to uniquely identify the item to be deletedDataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData deleteByFeed(java.lang.String feedName, java.lang.String rawItemType) throws DataHubOutboundException
DataHubOutboundServicedeleteByFeed in interface DataHubOutboundServicefeedName - Name of the data feed the items originated fromrawItemType - Name of the raw type the items originated fromDataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData deleteByFeed(java.lang.String rawItemType) throws DataHubOutboundException
DataHubOutboundServicedeleteByFeed in interface DataHubOutboundServicerawItemType - Name of the raw type the items originated fromDataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData deleteByFeed(java.lang.String feedName, java.lang.String rawItemType, java.util.Map<java.lang.String,java.lang.Object> keyFields) throws DataHubOutboundException
DataHubOutboundServicedeleteByFeed in interface DataHubOutboundServicefeedName - Name of the data feed item originated fromrawItemType - Name of the raw type the item originated fromkeyFields - map attribute values for the object to delete. The key in the map is the attribute name, the value is
the attribute value. The map must contain at least all primary key attribute values.DataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic ResultData deleteByFeed(java.lang.String rawItemType, java.util.Map<java.lang.String,java.lang.Object> keyFields) throws DataHubOutboundException
DataHubOutboundServicedeleteByFeed in interface DataHubOutboundServicerawItemType - Name of the raw type the item originated fromkeyFields - map attribute values for the object to delete. The key in the map is the attribute name, the value is
the attribute value. The map must contain at least all primary key attribute values.DataHubCommunicationException - if communication with the Data Hub server failedDataHubOutboundException - if the Data Hub server was unable to successfully complete the export operationpublic void setDataHubOutboundClient(DataHubOutboundClient dataHubOutboundClient)
dataHubOutboundClient - an implementation of the client to use.public void setCsvUtils(OutboundServiceCsvUtils csvUtils)
csvUtils - the utilities implementation to use.Copyright © 2018 SAP SE. All Rights Reserved.