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