Package org.nuxeo.ecm.webengine.ui.tree
Class JSonTreeSerializer
java.lang.Object
org.nuxeo.ecm.webengine.ui.tree.JSonTreeSerializer
- All Implemented Interfaces:
TreeItemVisitor
- Direct Known Subclasses:
JSonDocumentTreeSerializer
- Author:
- Bogdan Stefanescu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMust be overridden to provide real URLsprotected net.sf.json.JSONObject
You may override this method to change the output JSON.net.sf.json.JSONArray
toJSON
(Collection<TreeItem> items) net.sf.json.JSONObject
net.sf.json.JSONArray
Visit a tree item.
-
Constructor Details
-
JSonTreeSerializer
public JSonTreeSerializer()
-
-
Method Details
-
getUrl
Must be overridden to provide real URLs -
toJSON
-
toJSON
-
toJSON
-
visit
Description copied from interface:TreeItemVisitor
Visit a tree item.- Specified by:
visit
in interfaceTreeItemVisitor
- Parameters:
item
- the item to visit
-
item2JSON
You may override this method to change the output JSON.
-