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 PreIngestPlugincreateRequest - 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 updateRequest) throws PluginExecutionException, StopProcessingException
PreIngestPluginUpdateRequest prior to CatalogProvider.update(UpdateRequest).process in interface PreIngestPluginupdateRequest - 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 deleteRequest) throws PluginExecutionException, StopProcessingException
PreIngestPluginDeleteRequest prior to the execution of the update operation.process in interface PreIngestPlugindeleteRequest - 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 occursStopProcessingExceptionpublic 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.