Package com.esri.gpt.catalog.search

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


*/
public SearchResultRecord readAsSearchResult(
    ResourceLinkBuilder resourceLinkBuilder, boolean isExternal, String rid)
throws SearchException {
 
  SearchResultRecord searchResultRecord = new SearchResultRecord();
  searchResultRecord.setAbstract(this.getAbstractData());
  searchResultRecord.setTitle(this.getTitle());
  searchResultRecord.setExternal(isExternal)
  searchResultRecord.setExternalId(rid);

  // marshall envelopes
  searchResultRecord.setEnvelope(this.getEnvelope());
   
  // marshall id
  searchResultRecord.setUuid(this.getId());
    try {
    searchResultRecord.setModifiedDate(
          this.getModifiedDateAsDateObject("yyyy-MM-dd'T'HH:mm:ssZ")
        );
  } catch (Exception e) {
    LOG.log(Level.INFO, "Could not set modfied time on record "
        + searchResultRecord.getUuid());
  }
 
  if(resourceLinkBuilder == null) {
    throw new SearchException(new NullPointerException("ResourceLinkBuilder "
      + "object in search engine is null"));
  }
  searchResultRecord.getObjectMap().put(KEY_LINK_INFO, this.getLinks());
  searchResultRecord.getObjectMap().put(KEY_TYPES, this.getTypes());
  searchResultRecord.getObjectMap().put(KEY_REFERENCES, this.getReferences());
 
  searchResultRecord.setDefaultGeometry(this.isDefaultGeometry());
 
  resourceLinkBuilder.build(this, searchResultRecord);
 
  return searchResultRecord;

View Full Code Here


          msgBroker);

    switch (format) {
      case html: {
          String [] styleUrl = extractStyle(request);
          SearchResultRecord record = dao.getMetadataAsSearchResultRecord(id);
          printHtml(msgBroker, writer, record, styleUrl);
        }
        break;
      case htmlfragment: {
          SearchResultRecord record = dao.getMetadataAsSearchResultRecord(id);
          printHtmlFragment(msgBroker, writer, record);
        }
        break;
      case kml: {
          SearchResultRecord record = dao.getMetadataAsSearchResultRecord(id);
          printKml(msgBroker, writer, record);
        }
        break;
      case json:
      case pjson: {     
          SearchResultRecord record = dao.getMetadataAsSearchResultRecord(id);
          printPjson(msgBroker, writer, record,format);
        }
        break;    
      default:
      case xml: {
View Full Code Here

TOP

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

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.