poolBarcode = j.getString("value");
}
}
Long platformId = Long.parseLong(platformIdStr);
Experiment e = new ExperimentImpl();
e.setStudy(s);
e.setDescription(description);
e.setAlias(alias);
e.setTitle(title);
e.setPlatform(requestManager.getPlatformById(platformId));
if (poolBarcode != null) {
e.setPool(requestManager.getPoolByBarcode(poolBarcode));
}
requestManager.saveExperiment(e);
}
}
catch (IOException e) {
log.debug("Failed", e);
return JSONUtils.SimpleJSONError("Failed: " + e.getMessage());
}
return JSONUtils.JSONObjectResponse("studyId", studyId);
}