Search in sources :

Example 1 with SortFieldDescription

use of nl.knaw.huygens.timbuctoo.search.description.sort.SortFieldDescription in project timbuctoo by HuygensING.

the class DcarLegislationSearchDescription method createSortDescription.

private SortDescription createSortDescription() {
    PropertyParserFactory propertyParserFactory = new PropertyParserFactory();
    List<SortFieldDescription> sortFieldDescriptions = Lists.newArrayList(newSortFieldDescription().withName("dynamic_sort_title").withDefaultValue("").withProperty(localProperty().withName("dcarlegislation_titleEng").withParser(propertyParserFactory.getParser(String.class))).build(), newSortFieldDescription().withName("dynamic_k_date").withDefaultValue(0).withProperty(localProperty().withName("dcarlegislation_date1").withParser(propertyParserFactory.getParser(Datable.class))).build());
    return new SortDescription(sortFieldDescriptions);
}
Also used : BuildableSortFieldDescription.newSortFieldDescription(nl.knaw.huygens.timbuctoo.search.description.sort.BuildableSortFieldDescription.newSortFieldDescription) SortFieldDescription(nl.knaw.huygens.timbuctoo.search.description.sort.SortFieldDescription) SortDescription(nl.knaw.huygens.timbuctoo.search.description.sort.SortDescription) PropertyParserFactory(nl.knaw.huygens.timbuctoo.search.description.propertyparser.PropertyParserFactory)

Aggregations

PropertyParserFactory (nl.knaw.huygens.timbuctoo.search.description.propertyparser.PropertyParserFactory)1 BuildableSortFieldDescription.newSortFieldDescription (nl.knaw.huygens.timbuctoo.search.description.sort.BuildableSortFieldDescription.newSortFieldDescription)1 SortDescription (nl.knaw.huygens.timbuctoo.search.description.sort.SortDescription)1 SortFieldDescription (nl.knaw.huygens.timbuctoo.search.description.sort.SortFieldDescription)1