public class TagsFilterQueryPlugin extends Object implements PreFederatedQueryPlugin
tags
filter is present on a query, adds a default tag of resource
. A
filter will also be added to include metacards without any tags attribute to support backwards
compatibility.Constructor and Description |
---|
TagsFilterQueryPlugin(List<CatalogProvider> catalogProviders,
FilterAdapter filterAdapter,
FilterBuilder filterBuilder) |
Modifier and Type | Method and Description |
---|---|
QueryRequest |
process(Source source,
QueryRequest input)
Processes a
QueryRequest prior to execution of the Federated Query . |
public TagsFilterQueryPlugin(List<CatalogProvider> catalogProviders, FilterAdapter filterAdapter, FilterBuilder filterBuilder)
public QueryRequest process(Source source, QueryRequest input) throws PluginExecutionException, StopProcessingException
PreFederatedQueryPlugin
QueryRequest
prior to execution of the Federated Query
.process
in interface PreFederatedQueryPlugin
source
- the Source
the query will be sent toinput
- the QueryRequest
to processQueryRequest
to pass to the next PreFederatedQueryPlugin
, or if this is the last PreFederatedQueryPlugin
to be
calledPluginExecutionException
- thrown when an error occurs while processing the QueryRequest
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.This work is licensed under a Creative Commons Attribution 4.0 International License.