public abstract class AbstractMetacardGroomerPlugin extends Object implements PreIngestPlugin
| Constructor and Description |
|---|
AbstractMetacardGroomerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyCreatedOperationRules(CreateRequest createRequest,
Metacard aMetacard,
Date timestamp)
This method is called on each Metacard in the
CreateRequest. |
protected abstract void |
applyUpdateOperationRules(UpdateRequest updateRequest,
Map.Entry<Serializable,Metacard> anUpdate,
Metacard aMetacard,
Date timestamp)
This method is called on each
Metacard in the UpdateRequest. |
CreateRequest |
process(CreateRequest input)
Process a
CreateRequest prior to CatalogProvider.create(CreateRequest). |
DeleteRequest |
process(DeleteRequest input)
Processes the
DeleteRequest prior to the execution of the update operation. |
UpdateRequest |
process(UpdateRequest input)
Process a
UpdateRequest prior to CatalogProvider.update(UpdateRequest). |
public CreateRequest process(CreateRequest input) throws PluginExecutionException, StopProcessingException
PreIngestPluginCreateRequest prior to CatalogProvider.create(CreateRequest).process in interface PreIngestPlugininput - the CreateRequest to processCreateRequest to pass to the next PreIngestPlugin, or to the CatalogProvider if this is the last
PreIngestPlugin to be calledPluginExecutionException - if an error in processing occursStopProcessingExceptionpublic UpdateRequest process(UpdateRequest input) throws PluginExecutionException, StopProcessingException
PreIngestPluginUpdateRequest prior to CatalogProvider.update(UpdateRequest).process in interface PreIngestPlugininput - the UpdateRequest to processUpdateRequest to pass to the next PreIngestPlugin, or to the CatalogProvider if this is the last
PreIngestPlugin to be calledPluginExecutionException - if an error in processing occursStopProcessingExceptionpublic DeleteRequest process(DeleteRequest input) throws PluginExecutionException, StopProcessingException
PreIngestPluginDeleteRequest prior to the execution of the update operation.process in interface PreIngestPlugininput - the DeleteRequest to processDeleteRequest to pass to the next PreIngestPlugin, or if this is the last PreIngestPlugin to be calledPluginExecutionException - thrown when an error in processing occursStopProcessingExceptionprotected abstract void applyCreatedOperationRules(CreateRequest createRequest, Metacard aMetacard, Date timestamp) throws PluginExecutionException, StopProcessingException
CreateRequest. It allows for the
modification of the Metacard object within the request.createRequest - the entire CreateRequest objectaMetacard - a Metacard within the requesttimestamp - a current Date timestamp to be optionally used to timestamp each
MetacardPluginExecutionExceptionStopProcessingExceptionprotected abstract void applyUpdateOperationRules(UpdateRequest updateRequest, Map.Entry<Serializable,Metacard> anUpdate, Metacard aMetacard, Date timestamp) throws PluginExecutionException, StopProcessingException
Metacard in the UpdateRequest. It allows for
modification of the Metacard object within the request.updateRequest - the entire UpdateRequest objectanUpdate - a single Update within the UpdateRequestaMetacard - a Metacard within the requesttimestamp - a current Date timestamp to be optionally used to timestamp each
Metacard, such as stamping each Metacard with the same Metacard.MODIFIED date.PluginExecutionExceptionStopProcessingExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.