예제 #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);
 }