@Test public void testGetSortBuilders_byGroupDefaultSort() throws Exception { List<SortBuilder> sortBuilders = underTest.getSortBuilders("group", null); assertThat(sortBuilders.size(), is(3)); assertSearchBuilder(sortBuilders.get(0), "group.case_insensitive", "asc"); assertSearchBuilder(sortBuilders.get(1), "name.case_insensitive", "asc"); assertSearchBuilder(sortBuilders.get(2), "version", "asc"); }
public List<SortBuilder> getSortBuilders(final String sort, final String direction) { return getSortBuilders(sort, direction, true); }
SearchUtils extends ComponentSupport { public List<SortBuilder> getSortBuilders(final String sort, final String direction) { return getSortBuilders(sort, direction, true); } }
SearchUtils extends ComponentSupport { public List<SortBuilder> getSortBuilders(final String sort, final String direction) { return getSortBuilders(sort, direction, true); } @Inject  SearchUtils(final RepositoryManagerRESTAdapter repoAdapter,
                     final Map<String, SearchMappings> searchMappings,
                     final Map<String, SearchContribution> searchContributions); }
SearchUtils extends ComponentSupport { public List<SortBuilder> getSortBuilders(final String sort, final String direction) { return getSortBuilders(sort, direction, true); } @Inject  SearchUtils(final RepositoryManagerRESTAdapter repoAdapter,
                     final Map<String, SearchMappings> searchMappings,
                     final Map<String, SearchContribution> searchContributions); Map<String, String> getSearchParameters(); Map<String, String> getAssetSearchParameters(); Repository getRepository(final String repository); QueryBuilder buildQuery(final Collection<SearchFilter> searchFilters); QueryBuilder buildQuery(final UriInfo uriInfo); QueryBuilder buildQuery(final UriInfo uriInfo, final List<String> parameters); boolean isAssetSearchParam(final String assetSearchParam); boolean isFullAssetAttributeName(final String assetSearchParam); String getFullAssetAttributeName(final String key); List<SortBuilder> getSortBuilders(final String sort, final String direction); List<SortBuilder> getSortBuilders(final String sort, final String direction, boolean allowAnySort); }
SearchUtils extends ComponentSupport { public List<SortBuilder> getSortBuilders(final String sort, final String direction) { return getSortBuilders(sort, direction, true); } @Inject  SearchUtils(final RepositoryManagerRESTAdapter repoAdapter,
                     final Map<String, SearchMappings> searchMappings,
                     final Map<String, SearchContribution> searchContributions); Map<String, String> getSearchParameters(); Map<String, String> getAssetSearchParameters(); Repository getRepository(final String repository); QueryBuilder buildQuery(final Collection<SearchFilter> searchFilters); QueryBuilder buildQuery(final UriInfo uriInfo); QueryBuilder buildQuery(final UriInfo uriInfo, final List<String> parameters); boolean isAssetSearchParam(final String assetSearchParam); boolean isFullAssetAttributeName(final String assetSearchParam); String getFullAssetAttributeName(final String key); List<SortBuilder> getSortBuilders(final String sort, final String direction); List<SortBuilder> getSortBuilders(final String sort, final String direction, boolean allowAnySort); static final String CONTINUATION_TOKEN; static final String SORT_FIELD; static final String SORT_DIRECTION; }