Package org.deri.grefine.reconcile.model

Examples of org.deri.grefine.reconcile.model.ReconciliationService


      in = new FileInputStream(new File(workingDir, id+".ttl"));
    }catch(FileNotFoundException e){
      in = null;
    }
   
    ReconciliationService service = registry.getService(id,in);
    if(service==null){
      throw new RuntimeException("Service '" + id + "' not found");
    }
    return service;
  }
View Full Code Here


    registry.save(servicesFile);
  }
 
  public String metadata(String serviceName, HttpServletRequest request){
    String callback = request.getParameter("callback");
    ReconciliationService service = getService(serviceName);
    return registry.metadata(service, request.getRequestURL().toString(), callback);
  }
View Full Code Here

    return registry.metadata(service, request.getRequestURL().toString(), callback);
  }
 
  public String multiReconcile(String serviceName, HttpServletRequest request) throws JsonParseException, JsonMappingException, IOException{
    String queries = request.getParameter("queries");
    ReconciliationService service = getService(serviceName);
    return registry.multiReconcile(service, queries);
  }
View Full Code Here

    ReconciliationService service = getService(serviceName);
    return registry.multiReconcile(service, queries);
  }
 
  public String suggestType(String serviceName, HttpServletRequest request) throws JsonGenerationException, JsonMappingException, IOException {
    ReconciliationService service = getService(serviceName);
    String callback = request.getParameter("callback");
    String prefix = request.getParameter("prefix");
    return registry.suggestType(service, prefix, callback);
  }
View Full Code Here

    String prefix = request.getParameter("prefix");
    return registry.suggestType(service, prefix, callback);
  }
 
  public String previewType(String serviceName, HttpServletRequest request) throws Exception {
    ReconciliationService service = getService(serviceName);
    String callback = request.getParameter("callback");
    String typeId = request.getParameter("id");   
    return registry.previewType(service, typeId, callback);
  }
View Full Code Here

    String typeId = request.getParameter("id");   
    return registry.previewType(service, typeId, callback);
  }
 
  public String suggestProperty(String serviceName, HttpServletRequest request) throws JsonGenerationException, JsonMappingException, IOException {
    ReconciliationService service = getService(serviceName);
    String callback = request.getParameter("callback");
    String prefix = request.getParameter("prefix");
    String typeId = request.getParameter("schema");
    return registry.suggestProperty(service, typeId, prefix, callback);
  }
View Full Code Here

    String typeId = request.getParameter("schema");
    return registry.suggestProperty(service, typeId, prefix, callback);
  }
 
  public String previewProperty(String serviceName, HttpServletRequest request) throws Exception {
    ReconciliationService service = getService(serviceName);
    String callback = request.getParameter("callback");
    String propertyId = request.getParameter("id");   
    return registry.previewProperty(service, propertyId, callback);
  }
View Full Code Here

public abstract class AbstractAddServiceCommand extends Command{

  @Override
  public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    try{
      ReconciliationService service = getReconciliationService(request);
      response.setCharacterEncoding("UTF-8");
          response.setHeader("Content-Type", "application/json");

          Writer w = response.getWriter();
          JSONWriter writer = new JSONWriter(w);
         
          writer.object();
          writer.key("code"); writer.value("ok");
          writer.key("service");
          service.writeAsJson(writer);
          writer.endObject();
          w.flush();
          w.close();
    } catch (Exception e) {
      respondException(response, e);
View Full Code Here

    String propertyId = request.getParameter("id");   
    return registry.previewProperty(service, propertyId, callback);
  }
 
  public String suggestEntity(String serviceName, HttpServletRequest request) throws JsonGenerationException, JsonMappingException, IOException {
    ReconciliationService service = getService(serviceName);
    String callback = request.getParameter("callback");
    String prefix = request.getParameter("prefix");
    return registry.suggestEntity(service, prefix, callback);
  }
View Full Code Here

    String prefix = request.getParameter("prefix");
    return registry.suggestEntity(service, prefix, callback);
  }
 
  public String previewEntity(String serviceName, HttpServletRequest request) throws Exception {
    ReconciliationService service = getService(serviceName);
    String callback = request.getParameter("callback");
    String entityId = request.getParameter("id");   
    return registry.previewEntity(service, entityId, callback);
  }
View Full Code Here

TOP

Related Classes of org.deri.grefine.reconcile.model.ReconciliationService

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.