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, visitprotected final WebContext ctx
protected final DistributionSnapshot ds
public NuxeoArtifactSerializer(WebContext ctx, DistributionSnapshot ds)
protected static boolean useEmbeddedMode(WebContext ctx)
public String getUrl(TreeItem item)
JSonTreeSerializergetUrl in class JSonTreeSerializerprotected net.sf.json.JSONObject item2JSON(TreeItem item, net.sf.json.JSONArray children)
JSonTreeSerializeritem2JSON in class JSonTreeSerializerCopyright © 2018 Nuxeo. All rights reserved.