Package ddf.catalog.plugin
Interface PreIngestPlugin
public interface PreIngestPlugin
Executes business logic prior to an ingest operation executing. For example if
Metacards need to be validated prior to CatalogProvider.create(CreateRequest) a PreIngestPlugin can do the
validation.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprocess(CreateRequest input) Process aCreateRequestprior toCatalogProvider.create(CreateRequest).process(DeleteRequest input) Processes theDeleteRequestprior to the execution of the update operation.process(UpdateRequest input) Process aUpdateRequestprior toCatalogProvider.update(UpdateRequest).
-
Method Details
-
process
Process aCreateRequestprior toCatalogProvider.create(CreateRequest).- Parameters:
input- theCreateRequestto process- Returns:
- the value of the processed
CreateRequestto pass to the nextPreIngestPlugin, or to theCatalogProviderif this is the lastPreIngestPluginto be called - Throws:
PluginExecutionException- if an error in processing occursStopProcessingException
-
process
Process aUpdateRequestprior toCatalogProvider.update(UpdateRequest).- Parameters:
input- theUpdateRequestto process- Returns:
- the value of the processed
UpdateRequestto pass to the nextPreIngestPlugin, or to theCatalogProviderif this is the lastPreIngestPluginto be called - Throws:
PluginExecutionException- if an error in processing occursStopProcessingException
-
process
Processes theDeleteRequestprior to the execution of the update operation.- Parameters:
input- theDeleteRequestto process- Returns:
- the value of the processed
DeleteRequestto pass to the nextPreIngestPlugin, or if this is the lastPreIngestPluginto be called - Throws:
PluginExecutionException- thrown when an error in processing occursStopProcessingException
-