Package models

Examples of models.SearchHistory


   * @param searchTerm
   *            the search term
   */
  protected void saveSearchHistory(String searchTerm) {
    if (StringUtils.isNotBlank(searchTerm)) {
      SearchHistory s = new SearchHistory();
      s.date = new Date();
      s.searchTerm = searchTerm;
      s.save();
    } else {
      Logger.warn("Cannot save search history for invalid term: %s", searchTerm);
    }
  }
View Full Code Here

TOP

Related Classes of models.SearchHistory

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.