345346347348349350351352353354355
return null; } JsopBuilder buf = new JsopBuilder().object(); toJson(buf, nodeState, depth, (int) offset, maxChildNodes, true, nodeFilter); return buf.endObject().toString(); } catch (Exception e) { throw new MicroKernelException(e); } }
340341342343344345346347348349350
in.close(); String name = f.substring(parent.length()); listing.key(name).value(id); listing.newline(); } listing.endObject(); String l = listing.toString(); String id = store.writeBlob(new ByteArrayInputStream(l.getBytes("UTF-8"))); return id; }
361362363364365366367368369370371
5960616263646566676869
if (before == null) { if (after != null) { buff.tag('+').key(path).object(); toJson(buff, after); return buff.endObject().newline().toString(); } else { // path doesn't exist in the specified revisions return ""; } } else if (after == null) {
116117118119120121122123124125126
if (p.startsWith(pathFilter)) { addedNodes.put(after, p); buff.tag('+'). key(p).object(); toJson(buff, after); buff.endObject().newline(); } } @Override public void childNodeDeleted(String name, NodeState before) {
214215216217218219220221222223224
String p = PathUtils.concat(getCurrentPath(), name); if (p.startsWith(pathFilter)) { buff.tag('+'). key(p).object(); toJson(buff, after); buff.endObject().newline(); } } @Override public void childNodeDeleted(String name, NodeState before) {
170171172173174175176177178179180
jsop.key("children").array(); for (String d : children) { jsop.value(d); } jsop.endArray(); jsop.endObject(); jsop.newline(); return jsop.toString(); } @Override
101102103104105106107108109110111
jsop.key("values").array(); for (String v : values) { jsop.value(v); } jsop.endArray(); jsop.endObject(); jsop.newline(); return jsop.toString(); } @Override
337338339340341342343344345346347
} json.object(); json.key("id").value(rev.id); json.key("ts").value(rev.timestamp); json.key("msg").value(rev.message); json.endObject(); } } json.endArray(); return json.toString(); }
386387388389390391392393394395396
json.object(); json.key("id").value(rev.id); json.key("ts").value(rev.timestamp); json.key("msg").value(rev.message); json.key("changes").value(jsop); json.endObject(); } } json.endArray(); return json.toString(); }