import org.splat.dal.dao.som.Database;
import org.splat.dal.bo.som.ProjectElement;
import org.splat.dal.bo.som.Scenario;
+import org.splat.service.StudyService;
import org.splat.som.StepRights;
import org.splat.dal.bo.som.Study;
import org.splat.wapp.PopupMenu;
protected OpenStudy mystudy = null; // Presented study
+ private StudyService _studyService;
+
private static final long serialVersionUID = 6467920934724352021L;
// ==============================================================================================================================
selection = mystudy.getSelection(); // Current selection
study = mystudy.getStudyObject(); // Current Study object
} else { // - The selected study is new
- study = Database.selectStudy(index);
+ study = getStudyService().selectStudy(index);
mystudy = open(study);
selection = mystudy.getSelection(); // Default selection
}
study = mystudy.getStudyObject();
}
else { // Re-opening (refreshing) the currently open study
- study = Database.selectStudy(mystudy.getIndex());
+ study = getStudyService().selectStudy(mystudy.getIndex());
mystudy = open(study); // Closes the previously open study
mystudy.setSelection(selection);
}
// -------------------------------
return String.valueOf(mystudy.isOpenForWriting());
}
+
+ /**
+ * Get the studyService.
+ *
+ * @return the studyService
+ */
+ public StudyService getStudyService() {
+ return _studyService;
+ }
+
+ /**
+ * Set the studyService.
+ *
+ * @param studyService
+ * the studyService to set
+ */
+ public void setStudyService(StudyService studyService) {
+ _studyService = studyService;
+ }
}
\ No newline at end of file