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
PreIngestPlugin
CreateRequest
prior to CatalogProvider.create(CreateRequest)
.process
in interface PreIngestPlugin
input
- 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 occursStopProcessingException
public UpdateRequest process(UpdateRequest input) throws PluginExecutionException, StopProcessingException
PreIngestPlugin
UpdateRequest
prior to CatalogProvider.update(UpdateRequest)
.process
in interface PreIngestPlugin
input
- 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 occursStopProcessingException
public DeleteRequest process(DeleteRequest input) throws PluginExecutionException, StopProcessingException
PreIngestPlugin
DeleteRequest
prior to the execution of the update operation.process
in interface PreIngestPlugin
input
- 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 occursStopProcessingException
protected 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
Metacard
PluginExecutionException
StopProcessingException
protected 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 UpdateRequest
aMetacard
- 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.PluginExecutionException
StopProcessingException
This work is licensed under a Creative Commons Attribution 4.0 International License.