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