Search in sources :

Example 21 with GeotoolsFilterAdapterImpl

use of ddf.catalog.filter.proxy.adapter.GeotoolsFilterAdapterImpl in project ddf by codice.

the class ResourceOperationsTest method setUpFrameworkProperties.

private void setUpFrameworkProperties() {
    frameworkProperties = new FrameworkProperties();
    frameworkProperties.setAccessPlugins(new ArrayList<>());
    frameworkProperties.setPolicyPlugins(new ArrayList<>());
    frameworkProperties.setSourcePoller(mockPoller);
    frameworkProperties.setPostResource(mockPostResourcePlugins);
    frameworkProperties.setFederationStrategy(mockFederationStrategy);
    frameworkProperties.setFilterBuilder(new GeotoolsFilterBuilder());
    frameworkProperties.setPreIngest(new ArrayList<>());
    frameworkProperties.setPostIngest(postIngestPlugins);
    frameworkProperties.setPreQuery(new ArrayList<>());
    frameworkProperties.setPostQuery(new ArrayList<>());
    frameworkProperties.setPreResource(new ArrayList<>());
    frameworkProperties.setPostResource(new ArrayList<>());
    frameworkProperties.setQueryResponsePostProcessor(mock(QueryResponsePostProcessor.class));
    frameworkProperties.setStorageProviders(Collections.singletonList(storageProvider));
    frameworkProperties.setMimeTypeMapper(new MimeTypeMapperImpl(Collections.singletonList(mimeTypeResolver)));
    frameworkProperties.setMimeTypeToTransformerMapper(mimeTypeToTransformerMapper);
    frameworkProperties.setValidationQueryFactory(new ValidationQueryFactory(new GeotoolsFilterAdapterImpl(), new GeotoolsFilterBuilder()));
}
Also used : FrameworkProperties(ddf.catalog.impl.FrameworkProperties) GeotoolsFilterBuilder(ddf.catalog.filter.proxy.builder.GeotoolsFilterBuilder) ValidationQueryFactory(ddf.catalog.cache.solr.impl.ValidationQueryFactory) MimeTypeMapperImpl(ddf.mime.mapper.MimeTypeMapperImpl) GeotoolsFilterAdapterImpl(ddf.catalog.filter.proxy.adapter.GeotoolsFilterAdapterImpl) QueryResponsePostProcessor(ddf.catalog.impl.QueryResponsePostProcessor)

Aggregations

GeotoolsFilterAdapterImpl (ddf.catalog.filter.proxy.adapter.GeotoolsFilterAdapterImpl)21 GeotoolsFilterBuilder (ddf.catalog.filter.proxy.builder.GeotoolsFilterBuilder)12 FilterAdapter (ddf.catalog.filter.FilterAdapter)10 UnsupportedQueryException (ddf.catalog.source.UnsupportedQueryException)9 ValidationQueryFactory (ddf.catalog.cache.solr.impl.ValidationQueryFactory)5 FilterBuilder (ddf.catalog.filter.FilterBuilder)5 ArrayList (java.util.ArrayList)5 Test (org.junit.Test)5 Filter (org.opengis.filter.Filter)5 MimeTypeMapperImpl (ddf.mime.mapper.MimeTypeMapperImpl)4 Metacard (ddf.catalog.data.Metacard)3 MetacardImpl (ddf.catalog.data.impl.MetacardImpl)3 FrameworkProperties (ddf.catalog.impl.FrameworkProperties)3 QueryResponsePostProcessor (ddf.catalog.impl.QueryResponsePostProcessor)3 QueryRequest (ddf.catalog.operation.QueryRequest)3 ByteArrayInputStream (java.io.ByteArrayInputStream)3 List (java.util.List)3 SecureCxfClientFactory (org.codice.ddf.cxf.SecureCxfClientFactory)3 ByteSource (com.google.common.io.ByteSource)2 Result (ddf.catalog.data.Result)2