Package com.esri.gpt.catalog.search

Examples of com.esri.gpt.catalog.search.SearchResultRecords


* @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 msgBroker message broker
* @param writer underlying writer
* @param record record to write
*/
private void printKml(MessageBroker msgBroker, PrintWriter writer, final SearchResultRecord record) {
  SearchResultRecords records = new SearchResultRecords();
  records.add(record);
  KmlFeedWriter kmlWriter = new KmlFeedWriter(msgBroker, writer);
  kmlWriter.setKmlSignatureProvider(new KmlSignatureProvider() {
    public String getTitle() {
      return record.getTitle();
    }
View Full Code Here

* @param msgBroker message broker
* @param writer underlying writer
* @param record record to write
*/
private void printPjson(MessageBroker msgBroker, PrintWriter writer, final SearchResultRecord record, Format format) {
  SearchResultRecords records = new SearchResultRecords();
  records.add(record);
  JsonFeedWriter jsonWriter = new JsonFeedWriter(writer, null, format == Format.pjson );
  jsonWriter.setMessageBroker(msgBroker)
  jsonWriter.write(new SearchResultRecordsAdapter(records));
}
View Full Code Here

  StringSet rids = this.getRids(request);

  // Get the criteria
  SearchCriteria criteria = this.toSearchCriteria(request, context, query);

  SearchResultRecords searchResultRecords = new SearchResultRecords();
  try {

    // make the search context
    SearchContext searchContext = new SearchContext();
    searchContext.setHttpRequest(request);
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.search.SearchResultRecords

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.