Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.util
Class JSonHelper

java.lang.Object
  extended by org.nuxeo.ecm.webengine.util.JSonHelper

public class JSonHelper
extends java.lang.Object

Author:
Bogdan Stefanescu

Method Summary
static net.sf.json.JSONArray asJSON(DocumentModelList docList)
           
static net.sf.json.JSONObject doc2JSon(DocumentModel doc)
           
static net.sf.json.JSONObject doc2JSon(DocumentModel doc, java.lang.String... schemas)
           
static net.sf.json.JSONArray getChildrenList(DocumentModel doc)
           
static java.lang.String toChildrenList(DocumentModel doc)
           
static java.lang.String toJSon(DocumentModel doc)
           
static java.lang.String toJSon(DocumentModel doc, java.lang.String... schemas)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toJSon

public static java.lang.String toJSon(DocumentModel doc)

toChildrenList

public static java.lang.String toChildrenList(DocumentModel doc)

asJSON

public static net.sf.json.JSONArray asJSON(DocumentModelList docList)

getChildrenList

public static net.sf.json.JSONArray getChildrenList(DocumentModel doc)

toJSon

public static java.lang.String toJSon(DocumentModel doc,
                                      java.lang.String... schemas)

doc2JSon

public static net.sf.json.JSONObject doc2JSon(DocumentModel doc)

doc2JSon

public static net.sf.json.JSONObject doc2JSon(DocumentModel doc,
                                              java.lang.String... schemas)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.