Migrate database extension importers to Jackson
@@ -45,7 +45,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.core.JsonGenerator;
-
+import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.refine.ProjectManager;
import com.google.refine.RefineServlet;
import com.google.refine.commands.HttpUtilities;
@@ -192,7 +192,7 @@ public class DatabaseImportController implements ImportingController {
job.updating = true;
try {
- JSONObject optionObj = ParsingUtilities.evaluateJsonStringToObject(
+ ObjectNode optionObj = ParsingUtilities.evaluateJsonStringToObjectNode(
request.getParameter("options"));
List<Exception> exceptions = new LinkedList<Exception>();
@@ -265,7 +265,7 @@ public class DatabaseImportController implements ImportingController {
ProjectMetadata metadata,
final ImportingJob job,
int limit,
- JSONObject options,
+ ObjectNode options,
List<Exception> exceptions) throws DatabaseServiceException{
@@ -323,7 +323,7 @@ public class DatabaseImportController implements ImportingController {
job.updating = true;
try {
- final JSONObject optionObj = ParsingUtilities.evaluateJsonStringToObject(
+ final ObjectNode optionObj = ParsingUtilities.evaluateJsonStringToObjectNode(
request.getParameter("options"));
final List<Exception> exceptions = new LinkedList<Exception>();
@@ -394,7 +394,7 @@ public class DatabaseImportController implements ImportingController {
ProjectMetadata metadata,
final ImportingJob job,
int limit,
- JSONObject options,
+ ObjectNode options,
List<Exception> exceptions) throws DatabaseServiceException{
