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, setScopegetExtensionName, register, setExtensionName, setProcessorpublic void setJsonConversionComponent(JSONConversionComponent jsonConversionComponent)
jsonConversionComponent - JSON conversion componentpublic String toJSON(ScriptNode node) throws com.fasterxml.jackson.core.JsonProcessingException
node - the node to convert to JSON representation.com.fasterxml.jackson.core.JsonProcessingExceptionpublic String toJSON(ScriptNode node, boolean useShortQNames) throws com.fasterxml.jackson.core.JsonProcessingException
node - the node to convert to JSON representation.useShortQNames - if true short-form qnames will be returned, else long-form.com.fasterxml.jackson.core.JsonProcessingExceptionpublic String getDownloadAPIUrl(ScriptNode node)
node - the node to construct the download URL forFor a container node, this method returns an empty string
Copyright © 2005–2018 Alfresco Software. All rights reserved.