+ long resultId = 0;
+
+ if ("".equals(userName)) {
+ return "Please enter the not empty user name.";
+ }
+ if ("".equals(studyName)) {
+ return "Please enter the not empty study name.";
+ }
+ if ("".equals(productName)) {
+ return "Please enter the not empty product name.";
+ }
+ if ("".equals(description)) {
+ return "Please enter the not empty description.";
+ }
+
+ try {
+ resultId = _scenarioService.createStudy(userName, studyName, productName, description);
+ } catch (InvalidPropertyException e) {
+ return e.getMessage();
+ } catch (MissedPropertyException e) {
+ return e.getMessage();
+ } catch (MultiplyDefinedException e) {
+ return e.getMessage();
+ }
+ return "New study is successfully created with id = " + String.valueOf(resultId);
+ }
+
+ /**
+ *
+ * {@inheritDoc}
+ * @see org.splat.ws_server.service.salome.SimanSalomeService#assignSimulationContext(java.lang.Long, java.lang.String)
+ */
+ public String assignSimulationContext(final Long studyId, final String contextName) {
+
+ return "result";
+ }