* @return SUCCESS
*/
public String doInitialize() {
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
setMenuProperty("study");
setTitleProperty("study");
initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
try {
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
- Execute todo = Execute.valueOf(action);
- Step step = mystudy.getSelectedStep();
+ Execute todo = Execute.valueOf(_action);
+ Step step = _openStudy.getSelectedStep();
Publication doc = step.getDocument(Integer.valueOf(index));
if (todo == Execute.renameDocument) {
// Useless to update the document presentation
} else if (todo == Execute.accept) {
getPublicationService().actualize(doc);
- mystudy.update(doc);
+ _openStudy.update(doc);
} else if (todo == Execute.promote) {
getPublicationService().promote(doc,
Calendar.getInstance().getTime());
- mystudy.update(doc);
+ _openStudy.update(doc);
} else if (todo == Execute.demote) {
getPublicationService().demote(doc);
- mystudy.update(doc);
+ _openStudy.update(doc);
} else if (todo == Execute.review) {
getPublicationService().review(doc,
Calendar.getInstance().getTime());
- mystudy.update(doc);
+ _openStudy.update(doc);
} else if (todo == Execute.invalidate) {
getPublicationService().invalidate(doc);
- mystudy.update(doc);
+ _openStudy.update(doc);
} else if (todo == Execute.approve) {
getPublicationService().approve(doc,
Calendar.getInstance().getTime());
- mystudy.update(doc);
- mystudy.getMenu().refreshSelectedItem(); // Updates the menu icon, in case of other documents in approved state
+ _openStudy.update(doc);
+ _openStudy.getMenu().refreshSelectedItem(); // Updates the menu icon, in case of other documents in approved state
}
return SUCCESS;
} catch (RuntimeException saverror) {
try {
// Getting user inputs
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
User user = getConnectedUser();
- Step step = mystudy.getSelectedStep();
+ Step step = _openStudy.getSelectedStep();
File updir = getRepositoryService().getDownloadDirectory(user);
File upfile = new File(updir.getPath() + "/" + filename);
String[] parse = filename.split("\\x2E");
+ updir.getPath() + "\".");
upfile.renameTo(export.getTo().asFile());
- mystudy.update(edited);
+ _openStudy.update(edited);
return SUCCESS;
} catch (Exception error) {
LOG.error("Reason:", error);
initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
try {
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
- Step step = mystudy.getSelectedStep();
+ Step step = _openStudy.getSelectedStep();
Publication doctag = step.getDocument(Integer.valueOf(index));
getStepService().removeDocument(step, doctag); // Updates the data structure
- mystudy.remove(doctag); // Updates the presentation
+ _openStudy.remove(doctag); // Updates the presentation
return SUCCESS;
} catch (RuntimeException saverror) {
LOG.error("Reason:", saverror);