Package org.jayasoft.woj.server.services.search

Examples of org.jayasoft.woj.server.services.search.SearchService


      if ((String) params.get("start") != null) {
        startIndex = Integer.parseInt((String) params.get("start"));
      }
      request.setAttribute("start", new Integer(startIndex));
     
      SearchService s = WOJServer.getInstance().getSearchService();

      SearchResult r;
      try {
        r = s.search(q, SecurityHelper.getUAK(request), startIndex);
      } catch (ParseException e) {
        throw new IllegalArgumentException("bad query: "+q);
      }
     
            request.setAttribute("processed", Boolean.TRUE);
View Full Code Here


        String visibilityName = (String) m.get(Commands.SEARCH.P_VISIBILITY);
    Visibility visibility = visibilityName != null?Visibility.fromString(visibilityName):null;
        String query = CommandUtil.getStringFromParamKey(m, Commands.SEARCH.P_QUERY);
        Integer startIndex = CommandUtil.getIntegerFromParamKey(m, Commands.SEARCH.P_START_INDEX);
       
    SearchService s = WOJServer.getInstance().getSearchService();

    SearchResult r;
    try {
      r = s.search(query, uak, startIndex == null?1:startIndex.intValue());
    } catch (ParseException e) {
      throw new IllegalArgumentException("bad query: "+query);
    }
    return r;
    }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.server.services.search.SearchService

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.