1 package org.splat.simer;
3 import org.splat.dal.bo.som.Study;
5 public class EditStudyAction extends DisplayStudyStepAction {
10 private static final long serialVersionUID = -4865668290514118396L;
12 private enum Execute {
16 // ==============================================================================================================================
18 // ==============================================================================================================================
20 public String doEdition() {
22 _openStudy = getOpenStudy();
24 Execute todo = Execute.valueOf(_action);
25 Study study = _openStudy.getStudyObject();
27 if (todo == Execute.publish) {
28 getStudyService().moveToPublic(study);
29 } else if (todo == Execute.promote) {
30 getStudyService().moveToReference(study);
32 _openStudy.getPopup().setContext("study",
33 _openStudy.getStudyRights()); // The context has changed
38 } catch (RuntimeException saverror) {
39 LOG.error("Reason:", saverror);