Package ddf.catalog.plugin
Interface PreDeliveryPlugin
public interface PreDeliveryPlugin
The PreDeliveryPlugin is executed prior to an event being delivered.
- Author:
- Michael Menousek
-
Method Summary
Modifier and TypeMethodDescriptionprocessCreate(Metacard metacard) Callback invoked when aMetacardhas createdprocessDelete(Metacard metacard) Callback invoked when aMetacardhas been deletedprocessUpdateHit(Update update) Callback invoked when aMetacardhas been updated and the new version matches aSubscription.processUpdateMiss(Update update) Callback invoked when aMetacardhas been updated and only the old version matches aSubscription
-
Method Details
-
processCreate
Callback invoked when aMetacardhas created- Parameters:
metacard- - the newly createdMetacard- Returns:
- the value of the
Metacardto pass to the nextPreDeliveryPlugin, or if this is the lastPreDeliveryPluginto be called, theDeliveryMethod - Throws:
PluginExecutionException- if there is a problem evaluating the update but processing should continueStopProcessingException- if this Catalog Plugin will not allow the current notification to occur
-
processUpdateMiss
Callback invoked when aMetacardhas been updated and only the old version matches aSubscription- Parameters:
update-- Returns:
- the
Updateto pass to the nextPreDeliveryPlugin, or if this is the lastPreDeliveryPluginto be called, theDeliveryMethod - Throws:
PluginExecutionException- if there is a problem evaluating the update but processing should continueStopProcessingException- if this Catalog Plugin will not allow the current notification to occur
-
processUpdateHit
Callback invoked when aMetacardhas been updated and the new version matches aSubscription. The old version may or may not match theSubscription- Parameters:
update-- Returns:
- the
Updateto pass to the nextPreDeliveryPlugin, or if this is the lastPreDeliveryPluginto be called, theDeliveryMethod - Throws:
PluginExecutionException- if there is a problem evaluating the update but processing should continueStopProcessingException- if this Catalog Plugin will not allow the current notification to occur
-
processDelete
Callback invoked when aMetacardhas been deleted- Parameters:
metacard- - the deletedMetacard- Returns:
- the
Metacardto pass to the nextPreDeliveryPlugin, or if this is the lastPreDeliveryPluginto be called, theDeliveryMethod - Throws:
PluginExecutionException- if there is a problem evaluating the update but processing should continueStopProcessingException- if this Catalog Plugin will not allow the current notification to occur
-