studyType = j.getString("value");
}
}
try {
Project p = requestManager.getProjectById(projectId);
Study s = new StudyImpl();
s.setProject(p);
s.setAlias(p.getAlias());
s.setDescription(studyDescription);
s.setSecurityProfile(p.getSecurityProfile());
s.setStudyType(studyType);
requestManager.saveStudy(s);
sb.append("<a class=\"dashboardresult\" href='/miso/study/" + s.getId() + "' target='_blank'><div onmouseover=\"this.className='dashboardhighlight ui-corner-all'\" onmouseout=\"this.className='dashboard ui-corner-all'\" class='dashboard ui-corner-all' >New Study Added:<br/>");
sb.append("Study ID: " + s.getId() + "<br/>");
sb.append("Study Name: <b>" + s.getName() + "</b><br/>");
sb.append("Study Alias: <b>" + s.getAlias() + "</b><br/>");
sb.append("Study Description: <b>" + s.getDescription() + "</b></div></a><br/><hr/><br/>");
}
catch (IOException e) {
log.debug("Failed", e);
return JSONUtils.SimpleJSONError("Failed: " + e.getMessage());
}