public final class ApplicationScriptUtils extends BaseScopableProcessorExtension
| Constructor and Description |
|---|
ApplicationScriptUtils() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDownloadAPIUrl(ScriptNode node) |
void |
setJsonConversionComponent(JSONConversionComponent jsonConversionComponent) |
java.lang.String |
toJSON(ScriptNode node)
Returns the JSON representation of a node.
|
java.lang.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 java.lang.String toJSON(ScriptNode node)
node - the node to convert to JSON representation.public java.lang.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 java.lang.String getDownloadAPIUrl(ScriptNode node)
node - the node to construct the download URL forFor a container node, this method returns an empty string
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.