Interface DataFeedCollector
- All Known Implementing Classes:
AbstractJsonArrayDataFeedCollector
,ProductDataFeedCollector
public interface DataFeedCollector
Component that gathers or collects data (e.g. Catalog data or Customer data) and writes it to a
JSON file to be transformed and fed to syndicates like Google, Facebook, eBay, SalesForce, etc.
- Author:
- Kelly Tisdell (ktisdell)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(DataFeedCollectionRequest request) Indicates if thisDataFeedCollector
can handle this type ofDataFeedProcessExecution
, presumably because of an entity type or other feed type indicator.handle
(DataFeedCollectionRequest request) This method handles collecting and transforming data of a certain type into a JSON file that will be used to transform and publish to syndicates such as Google or Facebook.
-
Method Details
-
handle
This method handles collecting and transforming data of a certain type into a JSON file that will be used to transform and publish to syndicates such as Google or Facebook. Implementors must consume theDataFeedCollectionRequest
and use it to fetch data (e.g. from the CatalogService) and then write that data to a file system for future processing or publication.- Parameters:
request
-- Returns:
- the DataFeedCollectionResponse containing details about the data collection step
-
canHandle
Indicates if thisDataFeedCollector
can handle this type ofDataFeedProcessExecution
, presumably because of an entity type or other feed type indicator.- Parameters:
request
-- Returns:
-