Package net.sf.regain.search.results

Examples of net.sf.regain.search.results.SortingOption


    if (sortingOptions == null) {
      // create default option relevance
      Localizer localizer = new Localizer(request.getResourceBaseUrl(), "msg", request.getLocale());
      String relevText = localizer.msg("relevance", "relevance");
      sortingOptions = new SortingOption[]{new SortingOption(relevText, "relevance", "desc", 1)};
    }

    if (sortingOptions != null) {
      String order = request.getParameter("order");
      //System.out.println("order: " + order);
View Full Code Here


          Node sortEntry = sortNodes[i];
          String desc = XmlToolkit.getAttribute(sortEntry, "description", true);
          int id = Integer.parseInt(XmlToolkit.getAttribute(sortEntry, "id", true));
          String field = XmlToolkit.getAttribute(sortEntry, "field", true);
          String order = XmlToolkit.getAttribute(sortEntry, "order", false);
          SortingOption sortOption = new SortingOption(desc, field, order, id);
          tmpSortOptions.add(sortOption);
        }
        if (tmpSortOptions.size() > 0) {
          // create the final array and sort the options by id
          sortingOptions = tmpSortOptions.toArray(new SortingOption[0]);
View Full Code Here

TOP

Related Classes of net.sf.regain.search.results.SortingOption

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.