Package com.esri.gpt.control.search

Examples of com.esri.gpt.control.search.SearchController


*
* @param records the records
*/
  @Override
  public void write(IFeedRecords records) {
  SearchController controller = this.readController();
  controller.getSearchResult().setRecords(new SearchResultRecords(records));
  controller.setWasSearched(true);
  try {
    showResults();
  } catch (Exception e) {
    LOG.log(Level.WARNING, "Error while showing results", e);
  }
View Full Code Here


*
* @param result the result
*/
public void write(SearchResult result) {
 
  SearchController controller = this.readController();
  controller.setSearchCriteria(this.getCriteria());
  this.getCriteria().getSearchFilterPageCursor().setTotalRecordCount(
      result.getMaxQueryHits());
 
  controller.setSearchResult(result);
  controller.setWasSearched(true);
  try {
    showResults();
  } catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
View Full Code Here

private SearchController readController() {
  FacesContextBroker broker = new FacesContextBroker();
  @SuppressWarnings("unused")
  FacesContext fc = broker.getFacesContext();
  // intentionally not used
  SearchController controller =
    (SearchController) broker.resolveManagedBean(JSFBEAN_SEARCH_CONTROLLER);
  controller.setSearchCriteria(this.getCriteria());
  return controller;
}
View Full Code Here

TOP

Related Classes of com.esri.gpt.control.search.SearchController

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.