28293031323334
notesService.saveNote(n); } catch (Exception e) { log.error(e.getMessage()); } return new TextResolution("OK"); }
35363738394041
public Resolution deleteNote() { Note n = notesService.getNote(noteId); if (!n.getUser().equals(getContext().getUser())) return null; notesService.deleteNote(noteId); return new TextResolution("OK"); }
42434445464748
public Resolution hideNote() { Note n = notesService.getNote(noteId); if (!n.getUser().equals(getContext().getUser())) return null; notesService.activateNote(noteId, false, false); return new TextResolution("OK"); }