Package org.cipres.treebase.domain.search

Examples of org.cipres.treebase.domain.search.SearchResultsFrozen


    return new ModelAndView(getFormView(), Constants.RESULT_SET, sr);
 

  public SearchResults<? extends TBPersistable> recoverSearchResults(
      HttpServletRequest request) {
    SearchResultsFrozen srFrozen = searchResultsFrozen(request);
    if (srFrozen == null) return null;
    return srFrozen.thaw();
  }
View Full Code Here


    if (srFrozen == null) return null;
    return srFrozen.thaw();
  }

  public ModelAndView selectResultsView(HttpServletRequest request) {
    SearchResultsFrozen srFrozen = searchResultsFrozen(request);
    LOGGER.debug("In selectResultsView with results = " + srFrozen);
   
    if (srFrozen == null) {
      LOGGER.debug("No results\n\tContextPath: " + request.getContextPath() +
          "\n\tPathInfo: " + request.getPathInfo() +
          "\n\tPathTranslated: " + request.getPathTranslated() +
          "\n\tRequestURI: " + request.getRequestURI() +
          "\n\tRequestURL: " + request.getRequestURL() +
          "\n");
      String URL = getDefaultViewURL();
      LOGGER.debug("Using default view URL=" + URL);
      return new ModelAndView(new RedirectView(URL));
    } else {
      switch (srFrozen.getType()) {
      case MATRIX:
        LOGGER.debug("Issuing new RedirectView pointing to matrixSearch.html");
        return new ModelAndView(new RedirectView("matrixSearch.html"));
      case STUDY:
        LOGGER.debug("Issuing new RedirectView pointing to studySearch.html");
View Full Code Here

      HttpServletRequest request) {
    return (SearchResultsFrozen) request.getSession().getAttribute("searchResults");
  }

  protected SearchResultsType searchResultsType(HttpServletRequest request) {
    SearchResultsFrozen sr = searchResultsFrozen(request);

    if (sr == null) {
      return initialSearchResults().getResultType();
    } else {
      return sr.getType();
    }
  }
View Full Code Here

*/
public class SearchResultsAsRDFController implements Controller {

  public ModelAndView handleRequest(HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    SearchResultsFrozen frozenResults = (SearchResultsFrozen) request.getSession().getAttribute("searchResults");
    if ( null != frozenResults ) {
      String phyloWSPath = request.getSession().getAttribute("originalSection") + "/find";
      SearchResults<?> searchResults = frozenResults.thaw();
      request.getSession().setAttribute("searchResultsThawed", searchResults);     
      request.getSession().setAttribute("recordSchema", request.getSession().getAttribute("recordSchema"));
      request.getSession().setAttribute("format", "rss1");
      request.getSession().setAttribute("baseURL", TreebaseUtil.getPurlBase());
      request.getSession().setAttribute("phyloWSPath", phyloWSPath);
View Full Code Here

TOP

Related Classes of org.cipres.treebase.domain.search.SearchResultsFrozen

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.