public class ExpirationDatePlugin extends Object implements PreIngestPlugin
Constructor and Description |
---|
ExpirationDatePlugin() |
Modifier and Type | Method and Description |
---|---|
CreateRequest |
process(CreateRequest createRequest)
Modify metacard expiration dates (pre-ingest).
|
DeleteRequest |
process(DeleteRequest deleteRequest)
Processes the
DeleteRequest prior to the execution of the update operation. |
UpdateRequest |
process(UpdateRequest updateRequest)
Process a
UpdateRequest prior to CatalogProvider.update(UpdateRequest) . |
void |
setOffsetFromCreatedDate(int days) |
void |
setOverwriteIfBlank(boolean overwriteIfBlank) |
void |
setOverwriteIfExists(boolean overwriteIfExists) |
public CreateRequest process(CreateRequest createRequest) throws PluginExecutionException, StopProcessingException
process
in interface PreIngestPlugin
createRequest
- 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 updateRequest) throws PluginExecutionException, StopProcessingException
PreIngestPlugin
UpdateRequest
prior to CatalogProvider.update(UpdateRequest)
.process
in interface PreIngestPlugin
updateRequest
- 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 deleteRequest) throws PluginExecutionException, StopProcessingException
PreIngestPlugin
DeleteRequest
prior to the execution of the update operation.process
in interface PreIngestPlugin
deleteRequest
- 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
public void setOffsetFromCreatedDate(int days)
public void setOverwriteIfBlank(boolean overwriteIfBlank)
public void setOverwriteIfExists(boolean overwriteIfExists)
This work is licensed under a Creative Commons Attribution 4.0 International License.