Package org.cipres.treebase.web.util

Examples of org.cipres.treebase.web.util.RequestMessageSetter


      // XXX we now never do an exact match with terms provided through the web app. We can change
      // this, e.g. by adding a check box whose value is the boolean argument of doSearch()
      Collection<Study> matches = doSearch(request, response, searchType, errors,searchTerm,false,null)
      if ( TreebaseUtil.isEmpty(request.getParameter("format")) || ! request.getParameter("format").equals("rss1") ) {       
        SearchResults<Study> newRes = intersectSearchResults(oldRes, new StudySearchResults(matches),
        new RequestMessageSetter(request), "No matching studies found")
        saveSearchResults(request, newRes);
        return new ModelAndView("search/studySearch", Constants.RESULT_SET, newRes);    
      }
      else {
        return this.searchResultsAsRDF(new StudySearchResults(matches), request, null,"study","study");
View Full Code Here


   
    if (formName.equals("matrixSimple")) {
      String buttonName = request.getParameter("searchButton");
      Set<Matrix> matches = new HashSet<Matrix>();
      String searchTerm = convertStars(request.getParameter("searchTerm"));
       SearchMessageSetter mSetter = new RequestMessageSetter(request);
      MatrixSearchResults oldRes; 
      {
        SearchResults<?> sr = searchResults(request);
        if (sr != null) {
          oldRes = (MatrixSearchResults) sr.convertToMatrices();
View Full Code Here

        }   
      }
      matches.removeAll(orphanedTrees);

      SearchResults<PhyloTree> newRes = intersectSearchResults(oldRes, new TreeSearchResults(matches),
      new RequestMessageSetter(request), "No matching trees found")
      saveSearchResults(request, newRes)
      if ( TreebaseUtil.isEmpty(request.getParameter("format")) || ! request.getParameter("format").equals("rss1") ) {     
        return new ModelAndView("search/treeSearch", Constants.RESULT_SET, newRes);      
      }
      else {
View Full Code Here

TOP

Related Classes of org.cipres.treebase.web.util.RequestMessageSetter

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.