Package com.esri.gpt.framework.jsf

Examples of com.esri.gpt.framework.jsf.FacesContextBroker


  SavedSearchCriterias savedSearchCriterias =
    saveRpstry.getSavedList(context.getUser());
  if(savedSearchCriterias.size() >=
    SearchConfig.getConfiguredInstance().getMaxSavedSearches()) {
    MessageBroker messageBroker =
      new FacesContextBroker(request,response).extractMessageBroker();
    String message =
      messageBroker.getMessage("catalog.search.error.maxSavedSearchesReached")
        .getSummary();
    writeSavedSearches(request, response, context, message);
    return;
  }
 
  String body = IOUtils.toString(request.getInputStream(), "UTF-8");
  Map<String, String> paramMap = urlToParamMap(body);
 
  String name = "";
  String criteria = "";
  name = paramMap.get("name");
  if("".equals(Val.chkStr(name))) {
    MessageBroker messageBroker =
      new FacesContextBroker(request,response).extractMessageBroker();
    String message =
      messageBroker.getMessage("catalog.search.savedSearches.noSaveName")
        .getSummary();
    writeSavedSearches(request, response, context, message);
    return;
View Full Code Here


    try {
      InputStream inputStream = new ByteArrayInputStream(criteria.getBytes());
      Document doc = XMLUtils.newDocument(new InputSource(inputStream));
      SearchCriteria searchCriteria = new SearchCriteria(doc);
      MessageBroker messageBroker =
        new FacesContextBroker(request,response).extractMessageBroker();
      RestUrlBuilder builder = RestUrlBuilder.newBuilder(context,request,
          messageBroker);
      String id = SearchEngineLocal.ID;
      for(ISearchFilter filter : searchCriteria.getMiscelleniousFilters()) {
        if(filter instanceof SearchFilterHarvestSites) {
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.jsf.FacesContextBroker

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.