if (child.equals(NAME_VALUE)) { return getMessageResourceValue(context, varResolver, note .getValue(), note.getParameters());
protected void postProcess(Notes notes) { if (notes.size() == 0) { notes.add(new Note("app.note.copyPage.succeed")); } }
protected void postProcess(Notes notes) { if (notes.size() == 0) { notes.add(new Note("app.note.movePage.succeed")); } } }
if (child.equals(NAME_VALUE)) { return getMessageResourceValue(context, varResolver, note .getValue(), note.getParameters());
public Object do_searchPluginForUpdate() { final List<PluginDto> list = findUpdatedPlugins(); plugins_ = list; if (list.isEmpty()) { setTransferredNotes(new Notes().add(new Note( "app.note.plugin.noUpdateFound"))); } return "/plugin-update.updatePlugins.html"; }
protected void processPage(Page page, Notes notes) { String name = page.getName(); try { page.moveTo(getPage(), name); } catch (DuplicatePageException ex) { notes.add(new Note("app.error.movePage.nameAlreadyExists", name)); } catch (LoopDetectedException ex) { notes.add(new Note("app.error.movePage.loopDetected", page .getPathname())); } }
public Object do_deleteVariant() { if (!variant_.equals(Page.VARIANT_DEFAULT)) { deleteVariant(variant_); setNotes(new Notes().add(new Note( "app.note.property.deleteVariant.succeed", variant_))); } updateMenu(); Map<String, String[]> paramMap = new HashMap<String, String[]>(); paramMap.put("variant", new String[] { Page.VARIANT_DEFAULT }); return getRedirection("/property.list.do" + getPathname(), paramMap); }
protected void processPage(Page page, Notes notes) { String name = page.getName(); try { pagePlugin_.copy(getPage(), name, page, true); } catch (DuplicatePageException ex) { throw new RuntimeException("Can't happen!", ex); } catch (LoopDetectedException ex) { notes.add(new Note("app.error.copyPage.loopDetected", page .getPathname())); } }
setNotes(new Notes().add(new Note("app.note.editGroupOfUser.succeed"))); return true;
protected void postProcess() { setNotes(new Notes().add(new Note("app.note.concealPage." + value_ + ".succeed"))); updateMenu(); }
setNotes(new Notes().add(new Note("app.note.editRoleOfUser.succeed"))); return true;
setNotes(new Notes().add(new Note("app.note.editRoleOfGroup.succeed"))); return true;
setNotes(new Notes().add(new Note("app.note.editUserOfGroup.succeed"))); return true;
protected void postProcess() { setNotes(new Notes().add(new Note("app.note.deletePage.succeed"))); updateMenu(); } }
} catch (Exception ex) { ex.printStackTrace(); setNotes(new Notes().add(new Note("app.error.exportPage.failure", ThrowableUtils.getStackTraceString(ex)))); return false;
setNotes(new Notes().add(new Note("app.note.editMemberOfRole.succeed"))); return true;
public Object do_execute() { if ("POST".equalsIgnoreCase(getYmirRequest().getMethod())) { if (updateTemplate()) { setNotes(new Notes().add(new Note( "app.note.editTemplate.succeed"))); Map<String, String[]> paramMap = new HashMap<String, String[]>(); paramMap.put("variant", new String[] { variant_ }); return getRedirection("/edit-template.do" + getPathname(), paramMap); } } return render(); }
public Object do_execute() { if ("POST".equalsIgnoreCase(getYmirRequest().getMethod())) { try { updateContent(); setNotes(new Notes().add(new Note( "app.note.editContent.succeed"))); Map<String, String[]> paramMap = new HashMap<String, String[]>(); paramMap.put("variant", new String[] { variant_ }); return getRedirection("/edit-content.do" + getPathname(), paramMap); } catch (IOException ex) { log_.warn("Can't read body file: " + body_, ex); setNotes(new Notes().add(new Note("app.error.generic", ex .toString()))); } } return render(); }
boolean importPage() setNotes(new Notes().add(new Note( "app.error.importPage.nameIsEmpty"))); return false; setNotes(new Notes().add(new Note( "app.error.importPage.archiveIsEmpty"))); return false; } catch (IOException ex) { ex.printStackTrace(); setNotes(new Notes().add(new Note("app.error.importPage.failure", ThrowableUtils.getStackTraceString(ex)))); return false; } catch (DuplicatePageException ex) { setNotes(new Notes().add(new Note( "app.error.importPage.pageAlreadyExists"))); return false;
public Object do_delete() { do { if (names_ == null || names_.length == 0) { setNotes(new Notes().add(new Note( "app.error.clipboard.namesIsEmpty"))); break; } Clipboard clipboard = getClipboard(); for (int i = 0; i < names_.length; i++) { clipboard.removeEntry(names_[i]); } setNotes(new Notes().add(new Note( "app.note.clipboard.deletedFromClipboard"))); } while (false); return do_execute(); }