Description Webscripts XML
A collection of sublime text snippets useful for coding Alfresco Description Webscripts XML
Main Triggers !
Trigger: webscript
Output:
<webscript>
<shortname>human readable name for the Web Script</shortname>
<description>(optional) is documentation for the Web Script </description>
<url>/org/helloworld?to={name}</url>
<url>/org/hello/world?to={name}</url>
<format default="html">extension</format>
<authentication>user</authentication>
</webscript>
Trigger: format html argument
Output:
<format default="html">argument</format>
Trigger: format html extension
Output:
<format default="html">extension</format>
Trigger: format html any
Output:
<format default="html">any</format>
Trigger: format json argument
Output:
<format default="json">argument</format>
Trigger: format json extension
Output:
<format default="json">extension</format>
Trigger: format json any
Output:
<format default="json">any</format>
Trigger: authentication none
Output:
<authentication>none</authentication>
Trigger: authentication user
Output:
<authentication>user</authentication>
Trigger: authentication guest
Output:
<authentication>guest</authentication>
Trigger: authentication admin
Output:
<authentication>admin</authentication>
Trigger: transaction none
Output:
<transaction>none</transaction>
Trigger: transaction required
Output:
<transaction>required</transaction>
Trigger: transaction requiresnew
Output:
<transaction>requiresnew</transaction>
Trigger: url arg
Output:
<url>/org/helloworld?to={name}&subject={subject}</url>
Trigger: url vartemp
Output:
<url>/org/{userid}</url>
Trigger: url all
Output:
<url>/org/{userid}?to={name}&subject={subject}</url>
Trigger: family
Output:
<family>name of family</family>
Trigger: cache
Output:
<cache>
<never>false</never>
<public>true</public>
<mustrevalidate/>
</cache>
Trigger: negotiate
Output:
<negotiate accept="text/html">html</negotiate>
Trigger: lifecycle none
Output:
<lifecycle>none</lifecycle>
Trigger: lifecycle sample
Output:
<lifecycle>sample</lifecycle>
Trigger: lifecycle draft
Output:
<lifecycle>draft</lifecycle>
Trigger: lifecycle public_api
Output:
<lifecycle>public_api</lifecycle>
Trigger: lifecycle draft_public_api
Output:
<lifecycle>draft_public_api</lifecycle>
Trigger: lifecycle deprecated
Output:
<lifecycle>deprecated</lifecycle>
Trigger: lifecycle internal
Output:
<lifecycle>internal</lifecycle>
Author
GitHub: odtorres