Package ddf.catalog.plugin.groomer
Class AbstractMetacardGroomerPlugin
java.lang.Object
ddf.catalog.plugin.groomer.AbstractMetacardGroomerPlugin
- All Implemented Interfaces:
ddf.catalog.plugin.PreIngestPlugin
public abstract class AbstractMetacardGroomerPlugin
extends Object
implements ddf.catalog.plugin.PreIngestPlugin
Abstract class that can be extended to create another rule set for grooming a metacard.
- Author:
- Ashraf Barakat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidapplyCreatedOperationRules(ddf.catalog.operation.CreateRequest createRequest, ddf.catalog.data.Metacard aMetacard, Date timestamp) This method is called on each Metacard in theCreateRequest.protected abstract voidapplyUpdateOperationRules(ddf.catalog.operation.UpdateRequest updateRequest, Map.Entry<Serializable, ddf.catalog.data.Metacard> anUpdate, ddf.catalog.data.Metacard aMetacard, Date timestamp) This method is called on eachMetacardin theUpdateRequest.ddf.catalog.operation.CreateRequestprocess(ddf.catalog.operation.CreateRequest input) ddf.catalog.operation.DeleteRequestprocess(ddf.catalog.operation.DeleteRequest input) ddf.catalog.operation.UpdateRequestprocess(ddf.catalog.operation.UpdateRequest input)
-
Constructor Details
-
AbstractMetacardGroomerPlugin
public AbstractMetacardGroomerPlugin()
-
-
Method Details
-
process
public ddf.catalog.operation.CreateRequest process(ddf.catalog.operation.CreateRequest input) throws ddf.catalog.plugin.PluginExecutionException, ddf.catalog.plugin.StopProcessingException - Specified by:
processin interfaceddf.catalog.plugin.PreIngestPlugin- Throws:
ddf.catalog.plugin.PluginExecutionExceptionddf.catalog.plugin.StopProcessingException
-
process
public ddf.catalog.operation.UpdateRequest process(ddf.catalog.operation.UpdateRequest input) throws ddf.catalog.plugin.PluginExecutionException, ddf.catalog.plugin.StopProcessingException - Specified by:
processin interfaceddf.catalog.plugin.PreIngestPlugin- Throws:
ddf.catalog.plugin.PluginExecutionExceptionddf.catalog.plugin.StopProcessingException
-
process
public ddf.catalog.operation.DeleteRequest process(ddf.catalog.operation.DeleteRequest input) throws ddf.catalog.plugin.PluginExecutionException, ddf.catalog.plugin.StopProcessingException - Specified by:
processin interfaceddf.catalog.plugin.PreIngestPlugin- Throws:
ddf.catalog.plugin.PluginExecutionExceptionddf.catalog.plugin.StopProcessingException
-
applyCreatedOperationRules
protected abstract void applyCreatedOperationRules(ddf.catalog.operation.CreateRequest createRequest, ddf.catalog.data.Metacard aMetacard, Date timestamp) throws ddf.catalog.plugin.PluginExecutionException, ddf.catalog.plugin.StopProcessingException This method is called on each Metacard in theCreateRequest. It allows for the modification of theMetacardobject within the request.- Parameters:
createRequest- the entireCreateRequestobjectaMetacard- aMetacardwithin the requesttimestamp- a currentDatetimestamp to be optionally used to timestamp eachMetacard- Throws:
ddf.catalog.plugin.PluginExecutionExceptionddf.catalog.plugin.StopProcessingException
-
applyUpdateOperationRules
protected abstract void applyUpdateOperationRules(ddf.catalog.operation.UpdateRequest updateRequest, Map.Entry<Serializable, ddf.catalog.data.Metacard> anUpdate, ddf.catalog.data.Metacard aMetacard, Date timestamp) throws ddf.catalog.plugin.PluginExecutionException, ddf.catalog.plugin.StopProcessingExceptionThis method is called on eachMetacardin theUpdateRequest. It allows for modification of theMetacardobject within the request.- Parameters:
updateRequest- the entireUpdateRequestobjectanUpdate- a singleUpdatewithin theUpdateRequestaMetacard- aMetacardwithin the requesttimestamp- a currentDatetimestamp to be optionally used to timestamp each Metacard, such as stamping each Metacard with the sameMetacard.MODIFIEDdate.- Throws:
ddf.catalog.plugin.PluginExecutionExceptionddf.catalog.plugin.StopProcessingException
-