public class MetacardValidityMarkerPlugin extends Object implements PreIngestPlugin
Constructor and Description |
---|
MetacardValidityMarkerPlugin() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getEnforcedMetacardValidators() |
boolean |
getEnforceErrors() |
boolean |
getEnforceWarnings() |
List<MetacardValidator> |
getMetacardValidators() |
protected String |
getValidatorName(MetacardValidator metacardValidator) |
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) . |
void |
setEnforcedMetacardValidators(List<String> enforcedMetacardValidators) |
void |
setEnforceErrors(boolean enforceErrors) |
void |
setEnforceWarnings(boolean enforceWarnings) |
void |
setMetacardValidators(List<MetacardValidator> metacardValidators) |
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
public void setEnforcedMetacardValidators(List<String> enforcedMetacardValidators)
public List<MetacardValidator> getMetacardValidators()
public void setMetacardValidators(List<MetacardValidator> metacardValidators)
protected String getValidatorName(MetacardValidator metacardValidator)
public void setEnforceErrors(boolean enforceErrors)
public boolean getEnforceErrors()
public void setEnforceWarnings(boolean enforceWarnings)
public boolean getEnforceWarnings()
This work is licensed under a Creative Commons Attribution 4.0 International License.