public class NuxeoArtifactSerializer extends JSonTreeSerializer
Modifier and Type | Field and Description |
---|---|
protected WebContext |
ctx |
protected DistributionSnapshot |
ds |
Constructor and Description |
---|
NuxeoArtifactSerializer(WebContext ctx,
DistributionSnapshot ds) |
Modifier and Type | Method and Description |
---|---|
String |
getUrl(TreeItem item)
Must be overridden to provide real URLs
|
protected net.sf.json.JSONObject |
item2JSON(TreeItem item,
net.sf.json.JSONArray children)
You may override this method to change the output JSON.
|
protected static boolean |
useEmbeddedMode(WebContext ctx) |
toJSON, toJSON, toJSON, visit
protected final WebContext ctx
protected final DistributionSnapshot ds
public NuxeoArtifactSerializer(WebContext ctx, DistributionSnapshot ds)
protected static boolean useEmbeddedMode(WebContext ctx)
public String getUrl(TreeItem item)
JSonTreeSerializer
getUrl
in class JSonTreeSerializer
protected net.sf.json.JSONObject item2JSON(TreeItem item, net.sf.json.JSONArray children)
JSonTreeSerializer
item2JSON
in class JSonTreeSerializer
Copyright © 2018 Nuxeo. All rights reserved.