Пример #1
0
 public static void ajaxFormEdit(Long documentId) {
   Serializer serializer = Serializer.getInstance();
   renderJSON(serializer.getDocumentLastVersion(documentId));
 }
Пример #2
0
 /*
  * List all documents
  */
 public static void ajaxAllDocuments() {
   Serializer serializer = Serializer.getInstance();
   renderJSON(serializer.getAllDocuments());
 }
Пример #3
0
 /*
  * List only requested documents
  */
 public static void ajaxRequestDocuments(Long[] documentIds) {
   Serializer serializer = Serializer.getInstance();
   renderJSON(serializer.getDocuments(documentIds));
 }
Пример #4
0
 public static void ajaxBuildTree() {
   DocumentRootJSON root = new DocumentRootJSON("Documents");
   Serializer serializer = Serializer.getInstance();
   serializer.buildNode(0L, root);
   renderJSON(root);
 }