40414243444546
* @param text * レスポンスするテキスト * @return TextResolutionクラスのインスタンス */ public Resolution text(String contentType, Object text) { return new TextResolution(contentType, text.toString()); }
7273747576777879
public Resolution completeAnnotation() { String fulltext = thesesDao.getThesis(id, null).getFulltext(); String anotace = thesesService.parseAnnotation(fulltext); return new TextResolution(anotace); }
79808182838485
} public Resolution completeResume() { String fulltext = thesesDao.getThesis(id, null).getFulltext(); String resume = thesesService.parseResume(fulltext); return new TextResolution(resume); }
85868788899091
} public Resolution completeAuthor() { String fulltext = thesesDao.getThesis(id, null).getFulltext(); String author = thesesService.parseAuthor(fulltext); return new TextResolution(author); }
9192939495969798
} public Resolution completeSubject() { String fulltext = thesesDao.getThesis(id, null).getFulltext(); String subject = thesesService.parseSubject(fulltext); return new TextResolution(subject); }
33343536373839
} @DefaultHandler public Resolution moveThesisToDirectory() { final int result = thesesDao.updateParentDirectory(thesisId, directoryId); return (result==0 ? new CustomErrorResolution(400) : new TextResolution("OK")); }
59606162636465
} chartGenerator.setRegenerate(); String resultText = b.toString().length() == 0 ? "��dn� pr�ce nemusely b�t aktualizov�ny" : b.toString(); return new TextResolution(resultText); }
181182183184185186187
* @return */ public Resolution getParsedText() { final String file = thesesService.getDipstoreResourceAbsolutePath(documentPath); return new TextResolution(thesesService.parseDocument(file)); }
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"); }