public final class ApplicationScriptUtils extends BaseScopableProcessorExtension
Constructor and Description |
---|
ApplicationScriptUtils() |
Modifier and Type | Method and Description |
---|---|
String |
getDownloadAPIUrl(ScriptNode node) |
void |
setJsonConversionComponent(JSONConversionComponent jsonConversionComponent) |
String |
toJSON(ScriptNode node)
Returns the JSON representation of a node.
|
String |
toJSON(ScriptNode node,
boolean useShortQNames)
Returns the JSON representation of this node.
|
getScope, setScope
getExtensionName, register, setExtensionName, setProcessor
public void setJsonConversionComponent(JSONConversionComponent jsonConversionComponent)
jsonConversionComponent
- JSON conversion componentpublic String toJSON(ScriptNode node)
node
- the node to convert to JSON representation.public String toJSON(ScriptNode node, boolean useShortQNames)
node
- the node to convert to JSON representation.useShortQNames
- if true short-form qnames will be returned, else long-form.public String getDownloadAPIUrl(ScriptNode node)
node
- the node to construct the download URL forFor a container node, this method returns an empty string
Copyright © 2005–2017 Alfresco Software. All rights reserved.