@Test(expected = DSpaceBadRequestException.class) public void testInvalidSearchFilter1() throws Exception { searchFilter = new SearchFilter("test", "equals", "Smith, Donald"); queryBuilder .buildQuery(context, scope, discoveryConfiguration, query, Arrays.asList(searchFilter), "ITEM", page); }
public DiscoverQuery buildQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildQuery(context, scope, discoveryConfiguration, query, searchFilters, dsoTypes, page); }
DiscoverQueryBuilder implements InitializingBean { public DiscoverQuery buildQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildQuery(context, scope, discoveryConfiguration, query, searchFilters, dsoTypes, page); } }
DiscoverQueryBuilder implements InitializingBean { public DiscoverQuery buildQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildQuery(context, scope, discoveryConfiguration, query, searchFilters, dsoTypes, page); }  }
DiscoverQueryBuilder implements InitializingBean { public DiscoverQuery buildQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildQuery(context, scope, discoveryConfiguration, query, searchFilters, dsoTypes, page); }  @Override void afterPropertiesSet(); DiscoverQuery buildQuery(Context context, IndexableObject scope,
                                    DiscoveryConfiguration discoveryConfiguration,
                                    String query, List<SearchFilter> searchFilters,
                                    String dsoType, Pageable page); DiscoverQuery buildQuery(Context context, IndexableObject scope,
                                    DiscoveryConfiguration discoveryConfiguration,
                                    String query, List<SearchFilter> searchFilters,
                                    List<String> dsoTypes, Pageable page); DiscoverQuery buildFacetQuery(Context context, IndexableObject scope,
                                         DiscoveryConfiguration discoveryConfiguration,
                                         String prefix, String query, List<SearchFilter> searchFilters,
                                         String dsoType, Pageable page, String facetName); DiscoverQuery buildFacetQuery(Context context, IndexableObject scope,
                                         DiscoveryConfiguration discoveryConfiguration,
                                         String prefix, String query, List<SearchFilter> searchFilters,
                                         List<String> dsoTypes, Pageable page, String facetName); void setIndexableFactories(List<IndexFactory> indexableFactories); }
DiscoverQueryBuilder implements InitializingBean { public DiscoverQuery buildQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildQuery(context, scope, discoveryConfiguration, query, searchFilters, dsoTypes, page); }  @Override void afterPropertiesSet(); DiscoverQuery buildQuery(Context context, IndexableObject scope,
                                    DiscoveryConfiguration discoveryConfiguration,
                                    String query, List<SearchFilter> searchFilters,
                                    String dsoType, Pageable page); DiscoverQuery buildQuery(Context context, IndexableObject scope,
                                    DiscoveryConfiguration discoveryConfiguration,
                                    String query, List<SearchFilter> searchFilters,
                                    List<String> dsoTypes, Pageable page); DiscoverQuery buildFacetQuery(Context context, IndexableObject scope,
                                         DiscoveryConfiguration discoveryConfiguration,
                                         String prefix, String query, List<SearchFilter> searchFilters,
                                         String dsoType, Pageable page, String facetName); DiscoverQuery buildFacetQuery(Context context, IndexableObject scope,
                                         DiscoveryConfiguration discoveryConfiguration,
                                         String prefix, String query, List<SearchFilter> searchFilters,
                                         List<String> dsoTypes, Pageable page, String facetName); void setIndexableFactories(List<IndexFactory> indexableFactories);  }