Package com.esri.gpt.catalog.search

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


    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());
View Full Code Here


    try {
      RequestHandler handler = ProviderFactory.newHandler(context);
      OperationResponse resp = handler.handleXML(cswRequest);
      cswResponse = resp.getResponseXml();
    } catch (Exception e) {
      throw new SearchException(e);
    }
   
    getLogger().finest(" CSW response : " + cswResponse);
    String metadataUrl = "/csw?service=CSW&request=GetRecordById&version=2.0.2&ElementSetName=full&outputSchema=original&ID=";
    String requestUrl = request.getRequestURL().toString();
View Full Code Here

      this.axlToCswXsltTemplate = XsltTemplate.makeTemplate(path);
    } catch (TransformerConfigurationException e) {
      tmpltException = e;
    }
  if(tmpltException != null) {
    throw new SearchException("Could not make xslt template from path " +
        path , tmpltException );
  }
   
  return this.axlToCswXsltTemplate;
}
View Full Code Here

      this.cswToAxlXsltTemplate = XsltTemplate.makeTemplate(path);
    } catch (TransformerConfigurationException e) {
      tmpltException = e;
    }
  if(tmpltException != null) {
    throw new SearchException("Could not make xslt template from path " +
        path , tmpltException );
  }   
  return this.cswToAxlXsltTemplate;
}
View Full Code Here

  } catch (Exception e) {

    boolean rethrowExcep = false;
    String strMessage = e.getMessage();
    if( e instanceof SearchException) {
      SearchException searchException = (SearchException) e;
      if(searchException.getHasUserMessage()) {
        LOG.log(Level.FINER, strMessage, e);
        rethrowExcep = false;
      }        
      rethrowExcep = true;
    }
View Full Code Here

  HttpServletRequest request = getContextBroker().extractHttpServletRequest();

  LOG.log(Level.FINE, "Search Event type = {0}", eventType);
  if(eventType == null) {

    throw new 
    SearchException("Controller could not determine type of event passed");

  } else if(eventType.equals(
      SearchEvents.Event.EVENT_GOTOPAGE.name())) {
View Full Code Here

  if (detailsPanelGroup != null) {
    detailsPanelGroup.getChildren().clear();
  }
  setResourceUrl("");
  if (uuid == null || "".equals(uuid)) {
    throw new SearchException("UUID given for document requested is either null or empty");
  }
  String metadataXml = this.getMetadataText(uuid, catalogUri);
  this.getSearchResult().setCurrentMetadataXmlInView(metadataXml);
  this.setNavigationOutcome(NAV_RESULTS2VIEWDETAILS);
  MetadataDocument document = new MetadataDocument();
View Full Code Here

* @throws SearchException the search exception
*/
public String getMetadataText(String uuid, String catalogUri)
throws SearchException {
  if(uuid == null || "".equals(uuid)) {
    throw new SearchException("UUID given for document requested is either null"
        + " or empty");
  }
  ASearchEngine dao = this.getSearchDao();

  try {
    if(catalogUri != null){
      dao.setConnectionUri(new URI(catalogUri));
    }
    return dao.getMetadataAsText(uuid);
  } catch (URISyntaxException e) {
    throw new SearchException
    ("Invalid Search URL given for catalog "+ catalogUri + " "
        + e.getMessage() , e);
  }

}
View Full Code Here

    FacesMessage message = new FacesMessage();
    message.setSeverity(FacesMessage.SEVERITY_ERROR);
    message.setSummary(e.getMessage());
    message.setDetail(e.getMessage());
    broker.addMessage(message);
    broker.addErrorMessage(new SearchException(""));
    LOG.log(Level.WARNING, "Could not get Full Metadata Url",
        e);
  } finally {
    this.onExecutionPhaseCompleted();
  }
View Full Code Here

        this.getContextBroker().extractRequestContext(),
        id,
        this.getContextBroker().extractMessageBroker());
   
  } catch (Exception e) {
    throw new SearchException("Could not get a csw search engine: "
        + e.getMessage(), e);
  }
}
View Full Code Here

TOP

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

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.